summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2019-04-09 18:28:10 +0000
committersjg <sjg@NetBSD.org>2019-04-09 18:28:10 +0000
commit624b20cd4a4f3441671b22bfe279739d817d2c8d (patch)
tree92fa1614b36b9ab6a8b1bb03e0cc1c9ce257757c /usr.bin/make/parse.c
parentea898486a6043bd60dc6acf008cd7ebbbd530039 (diff)
ParseDoDependency: free paths rather than assert
PR: 52737 Reviewed by: christos
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index d7cecec4a49..ddf2acf0482 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -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 @@ ParseDoDependency(char *line)
}
out:
- assert(paths == NULL);
+ if (paths)
+ Lst_Destroy(paths, NULL);
if (curTargs)
Lst_Destroy(curTargs, NULL);
}