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)
Sat, Oct 26, 4:04 PM
Unknown Object (File)
Oct 14 2024, 9:46 AM
Unknown Object (File)
Oct 3 2024, 2:59 AM
Unknown Object (File)
Sep 29 2024, 11:26 PM
Unknown Object (File)
Sep 24 2024, 10:15 AM
Unknown Object (File)
Sep 15 2024, 1:14 PM
Unknown Object (File)
Sep 8 2024, 9:34 AM
Unknown Object (File)
Sep 8 2024, 5:00 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.