Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make CID 1025008: Free memory returned by Var_Subst
details: https://anonhg.NetBSD.org/src/rev/8f9d80d47898
branches: trunk
changeset: 343800:8f9d80d47898
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 27 16:18:47 2016 +0000
description:
CID 1025008: Free memory returned by Var_Subst
diffstat:
usr.bin/make/meta.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 0795105d815e -r 8f9d80d47898 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c Sat Feb 27 16:17:26 2016 +0000
+++ b/usr.bin/make/meta.c Sat Feb 27 16:18:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.50 2016/02/27 16:17:26 christos Exp $ */
+/* $NetBSD: meta.c,v 1.51 2016/02/27 16:18:47 christos Exp $ */
/*
* Implement 'meta' mode.
@@ -602,6 +602,7 @@
if (cp) {
str2Lst_Append(metaBailiwick, cp, NULL);
}
+ free(cp);
/*
* We ignore any paths that start with ${.MAKE.META.IGNORE_PATHS}
*/
@@ -614,6 +615,7 @@
if (cp) {
str2Lst_Append(metaIgnorePaths, cp, NULL);
}
+ free(cp);
}
/*
Home |
Main Index |
Thread Index |
Old Index