From 666c478965b42c82e5bf2adc4eadea543412aeeb Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 12 Nov 2004 21:46:09 +0000 Subject: [PATCH] The strings package passes back a pointer via brk_string() to internal memory, it should not be deallocated. The memory is allocated in str_init() and release in str_end() which are only called in main(). Submitted-by: Max Okumoto Taken-from: FreeBSD/1.22 --- usr.bin/make/job.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 92fc332a1f..fb6588eb40 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -37,7 +37,7 @@ * * @(#)job.c 8.2 (Berkeley) 3/19/94 * $FreeBSD: src/usr.bin/make/job.c,v 1.17.2.2 2001/02/13 03:13:57 will Exp $ - * $DragonFly: src/usr.bin/make/job.c,v 1.5 2004/11/12 21:41:51 dillon Exp $ + * $DragonFly: src/usr.bin/make/job.c,v 1.6 2004/11/12 21:46:09 dillon Exp $ */ #ifndef OLD_JOKE @@ -2750,12 +2750,6 @@ Job_ParseShell(line) commandShell->ignErr = "%s\n"; } } - - /* - * Do not free up the words themselves, since they might be in use by the - * shell specification... - */ - free(words); return SUCCESS; } -- 2.32.0