Coverity RESOURCE_LEAK - CID 12501 - plugins/wall/src/wall.cpp - resource leak in WallScreen::WallScreen(CompScreen *)

Bug #1101423 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Triaged
Low
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 12501
Checker: RESOURCE_LEAK
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/404.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/wall/src/wall.cpp
Function: WallScreen::WallScreen(CompScreen *)
Code snippet:
1686 GLScreenInterface::setHandler (glScreen);
1687
1688 // HACK: we have to keep libcairo loaded even if wall gets unloaded
1689 // to prevent crashes in XCloseDisplay
CID 12501 - RESOURCE_LEAK
Storage is returned from allocation function "dlopen(char const *, int)".
Ignoring storage allocated by "dlopen("libcairo.so.2", 1)" leaks it.
1690 dlopen ("libcairo.so.2", RTLD_LAZY);
1691
1692 memset (&switcherContext, 0, sizeof (WallCairoContext));
1693 memset (&thumbContext, 0, sizeof (WallCairoContext));
1694 memset (&highlightContext, 0, sizeof (WallCairoContext));
1695 memset (&arrowContext, 0, sizeof (WallCairoContext));

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-0.9.9: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/wall/src/wall.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → High
MC Return (mc-return)
summary: - Coverity RESOURCE_LEAK - CID 12501
+ Coverity RESOURCE_LEAK - CID 12501 - plugins/wall/src/wall.cpp -
+ resource leak in WallScreen::WallScreen(CompScreen *)
Changed in compiz:
milestone: none → 0.9.10.0
MC Return (mc-return)
Changed in compiz:
milestone: 0.9.10.0 → 0.9.11.0
Stephen M. Webb (bregma)
no longer affects: compiz/0.9.9
Changed in compiz:
importance: High → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.