summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-09-21 13:43:26 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-09-21 13:43:26 +0000
commit633b1b9886e7d451222c2cfff3a3452467244efd (patch)
treee92b35a136f25a0b08fc746d0241d73083b64177 /usr.bin/make
parentd62a92cc029e2ae95b466683397658e87715744a (diff)
plug a small memory leak, fairly infrequent.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/varmodifiers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/make/varmodifiers.c b/usr.bin/make/varmodifiers.c
index 4765cc7eb41..19dac732e22 100644
--- a/usr.bin/make/varmodifiers.c
+++ b/usr.bin/make/varmodifiers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: varmodifiers.c,v 1.38 2014/05/18 08:08:50 espie Exp $ */
+/* $OpenBSD: varmodifiers.c,v 1.39 2014/09/21 13:43:25 espie Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -1113,8 +1113,10 @@ check_quote(const char **p, SymTable *ctxt UNUSED, bool b UNUSED, int endc)
if ((*p)[1] == endc || (*p)[1] == ':') {
(*p)++;
return qargs;
- } else
+ } else {
+ free(qargs);
return NULL;
+ }
}
static void *