[Bug 199671] [patch] memory leak in cam scsi
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Apr 30 00:21:19 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199671
Scott Long <scottl at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |scottl at FreeBSD.org
--- Comment #15 from Scott Long <scottl at FreeBSD.org> ---
The clang static analyzer wasn't wrong. It's possible to leak the scan_info
object if the conditions for the 'for' loop prevent the loop from being
entered. It's not a normal occurrence in real life, but it's not impossible
either. What needs to happen is that the loop increment a reference counter on
scan_info, and if at the exit of the loop the refcount is 0, then free
scan_info. It's not a bug in clang, and it's probably not in Coverity either,
but I haven't looked at the output from that. Please don't file it as a bug
with those projects.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-scsi
mailing list