Page MenuHomeFreeBSD

Don't leak olinep if malloc() fails
ClosedPublic

Authored by truckman on Jun 8 2016, 8:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 7:08 AM
Unknown Object (File)
Mon, Apr 14, 6:17 AM
Unknown Object (File)
Mon, Apr 14, 2:24 AM
Unknown Object (File)
Mon, Apr 14, 1:41 AM
Unknown Object (File)
Feb 21 2025, 6:21 AM
Unknown Object (File)
Feb 17 2025, 4:41 AM
Unknown Object (File)
Feb 17 2025, 2:14 AM
Unknown Object (File)
Jan 31 2025, 7:06 PM
Subscribers

Details

Summary

If malloc() fails to allocate linep, then free olinep if
it exists before returning to avoid a memory leak.

Diff Detail

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

Event Timeline

truckman retitled this revision from to Don't leak olinep if malloc() fails.
truckman updated this object.
truckman edited the test plan for this revision. (Show Details)
truckman added a reviewer: kib.
kib edited edge metadata.
This revision is now accepted and ready to land.Jun 8 2016, 10:19 AM
This revision was automatically updated to reflect the committed changes.