Page MenuHomeFreeBSD

Deobfuscate cleanup path in clnt_bck_create(..)
ClosedPublic

Authored by ngie on Jun 10 2016, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 23, 11:16 AM
Unknown Object (File)
Tue, Dec 16, 1:38 AM
Unknown Object (File)
Wed, Dec 10, 10:45 AM
Unknown Object (File)
Nov 28 2025, 4:52 PM
Unknown Object (File)
Nov 22 2025, 7:49 PM
Unknown Object (File)
Nov 22 2025, 4:15 PM
Unknown Object (File)
Nov 22 2025, 3:21 PM
Unknown Object (File)
Oct 31 2025, 4:31 AM

Details

Reviewers
cem
Summary

Deobfuscate cleanup path in clnt_bck_create(..)

Similar to r300836, cl and ct will always be non-NULL as they're allocated
using the mem_alloc routines, which always use malloc(..., M_WAITOK) .

Deofuscating the cleanup path fixes a leak where if cl was NULL and
ct was not, ct would not be free'd, and also removes a duplicate test for
cl not being NULL.

MFC after: 1 week
Reported by: Coverity
CID: 1229999
Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4174
Build 4217: arc lint + arc unit

Event Timeline

ngie retitled this revision from to Deobfuscate cleanup path in clnt_bck_create(..).
ngie updated this object.
ngie edited the test plan for this revision. (Show Details)
ngie added subscribers: markj, pfg, rmacklem, cem.
cem added a reviewer: cem.
This revision is now accepted and ready to land.Jun 10 2016, 3:43 PM