Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Delete :@ loop iterator when done with it



details:   https://anonhg.NetBSD.org/src/rev/8e1519d407fd
branches:  trunk
changeset: 343648:8e1519d407fd
user:      sjg <sjg%NetBSD.org@localhost>
date:      Thu Feb 18 23:33:25 2016 +0000

description:
Delete :@ loop iterator when done with it

diffstat:

 usr.bin/make/var.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r a72769c6b4a3 -r 8e1519d407fd usr.bin/make/var.c
--- a/usr.bin/make/var.c        Thu Feb 18 20:50:44 2016 +0000
+++ b/usr.bin/make/var.c        Thu Feb 18 23:33:25 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.203 2016/02/18 20:25:08 sjg Exp $    */
+/*     $NetBSD: var.c,v 1.204 2016/02/18 23:33:25 sjg Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.203 2016/02/18 20:25:08 sjg Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.204 2016/02/18 23:33:25 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.203 2016/02/18 20:25:08 sjg Exp $");
+__RCSID("$NetBSD: var.c,v 1.204 2016/02/18 23:33:25 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2672,6 +2672,7 @@
                loop.ctxt = ctxt;
                newStr = VarModify(ctxt, &parsestate, nstr, VarLoopExpand,
                                   &loop);
+               Var_Delete(loop.tvar, ctxt);
                free(loop.tvar);
                free(loop.str);
                break;



Home | Main Index | Thread Index | Old Index