diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-11-14 18:16:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-11-14 18:16:23 +0000 |
commit | 17961ac3e5490e9032756e91051fafaebe105fd8 (patch) | |
tree | 20fe3739cfc9da607eab3680c36c6a607dfd38a3 /usr.bin | |
parent | d29c7f8a98e86e9a224ddb62125e168b8b011746 (diff) |
Fix erroneous free of static storage.
Problem reported by fgsch@.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/compat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index b77d6be6413..601b9ff72f9 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compat.c,v 1.13 1999/11/10 14:11:49 espie Exp $ */ +/* $OpenBSD: compat.c,v 1.14 1999/11/14 18:16:22 espie Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: compat.c,v 1.13 1999/11/10 14:11:49 espie Exp $"; +static char rcsid[] = "$OpenBSD: compat.c,v 1.14 1999/11/14 18:16:22 espie Exp $"; #endif #endif /* not lint */ @@ -329,6 +329,9 @@ CompatRunCommand (cmdp, gnp) shargv[1] = (errCheck ? "-ec" : "-c"); shargv[2] = cmd; shargv[3] = (char *)NULL; + free(bp); + free(av); + bp = NULL; av = shargv; argc = 0; break; |