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)
May 8 2024, 11:47 PM
Unknown Object (File)
Mar 23 2024, 1:47 AM
Unknown Object (File)
Feb 16 2024, 7:54 AM
Unknown Object (File)
Feb 16 2024, 6:44 AM
Unknown Object (File)
Jan 18 2024, 12:42 AM
Unknown Object (File)
Dec 19 2023, 11:52 PM
Unknown Object (File)
Nov 22 2023, 3:52 PM
Unknown Object (File)
Nov 13 2023, 9:16 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.