From 80c3f90ed4cebab720feea90a34d02f68373d32f Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 28 Dec 2017 05:34:14 +0000 Subject: [PATCH] Don't leak outfile. Free it before we return from bincvt. CID: 273685 --- usr.sbin/ndiscvt/ndiscvt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/ndiscvt/ndiscvt.c b/usr.sbin/ndiscvt/ndiscvt.c index 09f7faeb3068..276a6ef7bfdd 100644 --- a/usr.sbin/ndiscvt/ndiscvt.c +++ b/usr.sbin/ndiscvt/ndiscvt.c @@ -213,6 +213,7 @@ bincvt(char *sysfile, char *outfile, void *img, int fsize) tname, sysfile, tname, tname, sysfile, outfile, outfile); printf("%s", sysbuf); system(sysbuf); + free(outfile); return; }