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)
Wed, Oct 8, 6:02 AM
Unknown Object (File)
Sun, Sep 28, 12:35 PM
Unknown Object (File)
Mon, Sep 22, 1:58 PM
Unknown Object (File)
Sep 7 2025, 2:20 AM
Unknown Object (File)
Sep 3 2025, 1:46 AM
Unknown Object (File)
Sep 1 2025, 8:41 PM
Unknown Object (File)
Jul 26 2025, 9:26 AM
Unknown Object (File)
Jul 26 2025, 2:08 AM
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 Not Applicable
Unit
Tests Not Applicable

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.