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;
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to