Module Name:    src
Committed By:   martin
Date:           Tue Jan 26 14:08:58 UTC 2016

Modified Files:
        src/usr.sbin/sysinst: savenewlabel.c

Log Message:
David Binderman in PR bin/50714: fix memory leak


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/savenewlabel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/savenewlabel.c
diff -u src/usr.sbin/sysinst/savenewlabel.c:1.3 src/usr.sbin/sysinst/savenewlabel.c:1.4
--- src/usr.sbin/sysinst/savenewlabel.c:1.3	Fri May  1 17:48:36 2015
+++ src/usr.sbin/sysinst/savenewlabel.c	Tue Jan 26 14:08:58 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: savenewlabel.c,v 1.3 2015/05/01 17:48:36 martin Exp $	*/
+/*	$NetBSD: savenewlabel.c,v 1.4 2016/01/26 14:08:58 martin Exp $	*/
 
 /*
  * Copyright 1997 Jonathan Stone
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: savenewlabel.c,v 1.3 2015/05/01 17:48:36 martin Exp $");
+__RCSID("$NetBSD: savenewlabel.c,v 1.4 2016/01/26 14:08:58 martin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -133,5 +133,6 @@ savenewlabel(partinfo *lp, int nparts)
 	scripting_fprintf(NULL, "EOF\n");
 	fflush(NULL);
 	run_program(0, "sh -c 'cat /tmp/disktab.* >/tmp/disktab'");
+	free(f_name);
 	return(0);
 }

Reply via email to