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)
Thu, Dec 25, 6:33 AM
Unknown Object (File)
Tue, Dec 23, 12:50 PM
Unknown Object (File)
Nov 21 2025, 6:44 AM
Unknown Object (File)
Nov 21 2025, 6:41 AM
Unknown Object (File)
Nov 21 2025, 6:39 AM
Unknown Object (File)
Nov 21 2025, 6:37 AM
Unknown Object (File)
Nov 17 2025, 10:39 PM
Unknown Object (File)
Nov 2 2025, 7:38 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 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.