[Bug 203649] makefs: Coverity CID 1305659: Unclear whether reaction on malloc failure suffices.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 19 12:27:43 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203649

--- Comment #1 from scdbackup at gmx.net ---
--------------- Source analysis:

I meanwhile learned that err() is also available in userspace and
indeed exits its process.
So it is not a potential SIGSEGV but just a surplus test.

--------------- Remedy proposal:

-        if (var)
-                free(var);
+        free(var);

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


More information about the freebsd-bugs mailing list