[kmtrace] [Bug 331316] kde-dev-utils-4.12.2/kmtrace/match.cpp:39]: (error) Resource leak: map_file

Michael Pyne mpyne at kde.org
Fri Feb 21 03:51:02 GMT 2014


https://bugs.kde.org/show_bug.cgi?id=331316

Michael Pyne <mpyne at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpyne at kde.org

--- Comment #2 from Michael Pyne <mpyne at kde.org> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list