Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 05:34:14 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327274 - head/usr.sbin/ndiscvt
Message-ID:  <201712280534.vBS5YEgr024688@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712280534.vBS5YEgr024688>