summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/xmalloc.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-06-08 14:18:47 +0000
committerngie <ngie@FreeBSD.org>2016-06-08 14:18:47 +0000
commit47cb06bc0c53166cbc76421de660b94a24ea8661 (patch)
tree8271f9eff3aacbd3923acf073bf9f86d9563a08d /contrib/diff/lib/xmalloc.c
parentd1adc82bec6d598d481a6c3192da7bad1e0e95cf (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud