Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make ParseDoDependency: free paths rather than assert



details:   https://anonhg.NetBSD.org/src/rev/ecf201d86769
branches:  trunk
changeset: 450296:ecf201d86769
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Apr 09 18:28:10 2019 +0000

description:
ParseDoDependency: free paths rather than assert

PR: 52737
Reviewed by: christos

diffstat:

 usr.bin/make/parse.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ca4db9590067 -r ecf201d86769 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Tue Apr 09 18:22:33 2019 +0000
+++ b/usr.bin/make/parse.c      Tue Apr 09 18:28:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.231 2018/12/22 00:36:32 sjg Exp $  */
+/*     $NetBSD: parse.c,v 1.232 2019/04/09 18:28:10 sjg Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.231 2018/12/22 00:36:32 sjg Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.232 2019/04/09 18:28:10 sjg 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.231 2018/12/22 00:36:32 sjg Exp $");
+__RCSID("$NetBSD: parse.c,v 1.232 2019/04/09 18:28:10 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1753,7 +1753,8 @@
     }
 
 out:
-    assert(paths == NULL);
+    if (paths)
+       Lst_Destroy(paths, NULL);
     if (curTargs)
            Lst_Destroy(curTargs, NULL);
 }



Home | Main Index | Thread Index | Old Index