Summary: | kde-dev-utils-4.12.2/kmtrace/match.cpp:39]: (error) Resource leak: map_file | ||
---|---|---|---|
Product: | [Unmaintained] kmtrace | Reporter: | dcb314 |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | mpyne |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
dcb314
2014-02-20 08:27:35 UTC
I should also say that I found this bug by using cppcheck, a static analysis tool. I highly recommend it for C/C++ development work. This one's a false positive, as the circumstances of this function call is that it's already running in main(). In other words as soon as we execute "return 1" we're stopping execution anyways and the OS will recover the file descriptor without an fclose() call. If it were almost any other type of function I'd probably commit a fix just to keep the static analysis tools happy but I can't bring myself to here for what is essentially a documentation change. The kmtrace tool is no longer maintained. We suggest you use the 'heaptrack' tool instead. For more information, please see http://milianw.de/tag/heaptrack |