Coverity RESOURCE_LEAK - CID 13682

Bug #1124680 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot Qt Support
Status tracked in Trunk
Trunk
Invalid
High
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: 13682
Checker: RESOURCE_LEAK
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/404.html
File: /tmp/buildd/libautopilot-qt-0.4/lib/qttestability.cpp
Function: qt_testability_init
Code snippet:
 62 << "Autopilot introspection will not be available for this process." << std::endl;
 63 return;
 64 }
 65
CID 13682 - RESOURCE_LEAK
Storage is returned from allocation function "dlopen(char const *, int)".
Assigning: "driver" = storage returned from "dlopen(driver_name.c_str(), 1)".
 66 void* driver = dlopen(driver_name.c_str(), RTLD_LAZY);
 67 if (!driver)
 68 {
 69 std::cerr << "Cannot load library: " << dlerror() << std::endl
 70 << "Autopilot introspection will not be available for this process." << std::endl;
 71 return;

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : autopilot-qt-trunk: /tmp/buildd/libautopilot-qt-0.4/lib/qttestability.cpp

Source file with Coverity annotations.

Changed in autopilot-qt:
importance: Undecided → High
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

dlopen does nothing when called a second time with the same parameters. If we had a notification when the plugin was being unloaded we could unload the driver, but that still wouldn't silence this error.

Not a bug.

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.