Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Plug memory leak.
details: https://anonhg.NetBSD.org/src/rev/247acde6befc
branches: trunk
changeset: 352990:247acde6befc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Apr 16 21:37:37 2017 +0000
description:
Plug memory leak.
CID 978370
diffstat:
usr.bin/make/parse.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r b469497eca89 -r 247acde6befc usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Sun Apr 16 21:35:08 2017 +0000
+++ b/usr.bin/make/parse.c Sun Apr 16 21:37:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.222 2017/04/16 21:35:08 riastradh Exp $ */
+/* $NetBSD: parse.c,v 1.223 2017/04/16 21:37:37 riastradh Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.222 2017/04/16 21:35:08 riastradh Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.223 2017/04/16 21:37:37 riastradh Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.222 2017/04/16 21:35:08 riastradh Exp $");
+__RCSID("$NetBSD: parse.c,v 1.223 2017/04/16 21:37:37 riastradh Exp $");
#endif
#endif /* not lint */
#endif
@@ -2611,6 +2611,7 @@
*/
value = Var_Subst(NULL, value, VAR_CMD, VARF_WANTRES);
setenv(variable, value, 1);
+ free(value);
}
#endif
Home |
Main Index |
Thread Index |
Old Index