svn commit: r327274 - head/usr.sbin/ndiscvt
Warner Losh
imp at FreeBSD.org
Thu Dec 28 05:34:19 UTC 2017
Author: imp
Date: Thu Dec 28 05:34:14 2017
New Revision: 327274
URL: https://svnweb.freebsd.org/changeset/base/327274
Log:
Don't leak outfile. Free it before we return from bincvt.
CID: 273685
Modified:
head/usr.sbin/ndiscvt/ndiscvt.c
Modified: head/usr.sbin/ndiscvt/ndiscvt.c
==============================================================================
--- head/usr.sbin/ndiscvt/ndiscvt.c Thu Dec 28 05:34:08 2017 (r327273)
+++ head/usr.sbin/ndiscvt/ndiscvt.c Thu Dec 28 05:34:14 2017 (r327274)
@@ -213,6 +213,7 @@ bincvt(char *sysfile, char *outfile, void *img, int fs
tname, sysfile, tname, tname, sysfile, outfile, outfile);
printf("%s", sysbuf);
system(sysbuf);
+ free(outfile);
return;
}
More information about the svn-src-all
mailing list