Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst David Binderman in PR bin/50714: fix memory...
details: https://anonhg.NetBSD.org/src/rev/03f6da42e7f0
branches: trunk
changeset: 343244:03f6da42e7f0
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 26 14:08:58 2016 +0000
description:
David Binderman in PR bin/50714: fix memory leak
diffstat:
usr.sbin/sysinst/savenewlabel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r d8b27cf86f91 -r 03f6da42e7f0 usr.sbin/sysinst/savenewlabel.c
--- a/usr.sbin/sysinst/savenewlabel.c Tue Jan 26 14:05:29 2016 +0000
+++ b/usr.sbin/sysinst/savenewlabel.c Tue Jan 26 14:08:58 2016 +0000
@@ -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 @@
scripting_fprintf(NULL, "EOF\n");
fflush(NULL);
run_program(0, "sh -c 'cat /tmp/disktab.* >/tmp/disktab'");
+ free(f_name);
return(0);
}
Home |
Main Index |
Thread Index |
Old Index