Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2015 12:27:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 203649] makefs: Coverity CID 1305659: Unclear whether reaction on malloc failure suffices.
Message-ID:  <bug-203649-8-sOxOfZXLDV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203649-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203649-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203649

--- Comment #1 from scdbackup@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203649-8-sOxOfZXLDV>