diff options
author | truckman <truckman@FreeBSD.org> | 2016-06-15 06:42:30 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-06-15 06:42:30 +0000 |
commit | ea478cdf17b092127d850c94d192e06567a49ee6 (patch) | |
tree | b14af450dba03f2c524b5b64e5ccf57a5b71e370 /contrib/diff/lib/cmpbuf.c | |
parent | f4be65f8e03969bff13944ac444c0281c70d9a1f (diff) | |
download | FreeBSD-src-ea478cdf17b092127d850c94d192e06567a49ee6.zip FreeBSD-src-ea478cdf17b092127d850c94d192e06567a49ee6.tar.gz |
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
Diffstat (limited to 'contrib/diff/lib/cmpbuf.c')
0 files changed, 0 insertions, 0 deletions