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)
Fri, Oct 31, 4:31 AM
Unknown Object (File)
Fri, Oct 31, 4:30 AM
Unknown Object (File)
Thu, Oct 30, 11:19 PM
Unknown Object (File)
Thu, Oct 30, 4:33 PM
Unknown Object (File)
Sat, Oct 25, 5:31 PM
Unknown Object (File)
Fri, Oct 17, 7:52 PM
Unknown Object (File)
Oct 2 2025, 5:38 PM
Unknown Object (File)
Aug 30 2025, 7:40 PM

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