HomeFreeBSD

MFC r301596

Description

MFC r301596

Don't leak olinep if malloc() fails.

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

Reported by: Coverity
CID: 1016716
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D6755

Details

Provenance
truckmanAuthored on
Reviewer
kib
Differential Revision
D6755: Don't leak olinep if malloc() fails
Parents
rS301920: MFC r301592
Branches
Unknown
Tags
Unknown