diff options
author | ngie <ngie@FreeBSD.org> | 2016-06-08 14:18:47 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-06-08 14:18:47 +0000 |
commit | 47cb06bc0c53166cbc76421de660b94a24ea8661 (patch) | |
tree | 8271f9eff3aacbd3923acf073bf9f86d9563a08d /contrib/diff/lib/xmalloc.c | |
parent | d1adc82bec6d598d481a6c3192da7bad1e0e95cf (diff) | |
download | FreeBSD-src-47cb06bc0c53166cbc76421de660b94a24ea8661.zip FreeBSD-src-47cb06bc0c53166cbc76421de660b94a24ea8661.tar.gz |
MFC r300387,r300388,r300389:
r300387:
getnetid(..): consistently fclose fd at the end of the function
This mutes a false positive with cppcheck, but also helps eliminate future
potential issues with this variable
r300388:
Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf
was NULL
This would theoretically happen if the netconfig protocol family and protocol
semantics were never matched.
CID: 978179
r300389:
nis_rpcent: don't leak resultbuf from yp_first(..)/yp_next(..)
If the buffer couldn't be adequately resized to accomodate an additional "\n",
it would leak resultbuf by breaking from the loop early
CID: 1016702
Diffstat (limited to 'contrib/diff/lib/xmalloc.c')
0 files changed, 0 insertions, 0 deletions