Module Name: src Committed By: christos Date: Sat Feb 27 16:18:47 UTC 2016
Modified Files: src/usr.bin/make: meta.c Log Message: CID 1025008: Free memory returned by Var_Subst To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/usr.bin/make/meta.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.bin/make/meta.c diff -u src/usr.bin/make/meta.c:1.50 src/usr.bin/make/meta.c:1.51 --- src/usr.bin/make/meta.c:1.50 Sat Feb 27 11:17:26 2016 +++ src/usr.bin/make/meta.c Sat Feb 27 11:18:47 2016 @@ -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 @@ meta_mode_init(const char *make_mode) if (cp) { str2Lst_Append(metaBailiwick, cp, NULL); } + free(cp); /* * We ignore any paths that start with ${.MAKE.META.IGNORE_PATHS} */ @@ -614,6 +615,7 @@ meta_mode_init(const char *make_mode) if (cp) { str2Lst_Append(metaIgnorePaths, cp, NULL); } + free(cp); } /*