svn commit: r322636 - head/usr.sbin/bootparamd/bootparamd
Ngie Cooper
ngie at FreeBSD.org
Thu Aug 17 20:41:30 UTC 2017
Author: ngie
Date: Thu Aug 17 20:41:28 2017
New Revision: 322636
URL: https://svnweb.freebsd.org/changeset/base/322636
Log:
Don't leak bpf on early return when YP isn't defined (NIS support)
MFC after: 1 week
Reported by: cppcheck
Modified:
head/usr.sbin/bootparamd/bootparamd/bootparamd.c
Modified: head/usr.sbin/bootparamd/bootparamd/bootparamd.c
==============================================================================
--- head/usr.sbin/bootparamd/bootparamd/bootparamd.c Thu Aug 17 20:37:01 2017 (r322635)
+++ head/usr.sbin/bootparamd/bootparamd/bootparamd.c Thu Aug 17 20:41:28 2017 (r322636)
@@ -239,6 +239,8 @@ int blen;
warnx("could not close %s", bootpfile);
return(1);
#else
+ if (fclose(bpf))
+ warnx("could not close %s", bootpfile);
return(0); /* ENOTSUP */
#endif
}
More information about the svn-src-all
mailing list