summaryrefslogtreecommitdiff
path: root/usr.bin/awk/lib.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2022-09-01 15:21:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2022-09-01 15:21:29 +0000
commit70ae1873615ab6a46b0008d8ed4c7ea153830fd9 (patch)
tree6ffe565293ec572308c9e85da5b9d9ef06a209e7 /usr.bin/awk/lib.c
parent36b21fa25500f8cfb71ca4a0d5d5c098a93b7eb3 (diff)
Update awk to Aug 30, 2022 version.
Various leaks and use-after-free issues plugged/fixed.
Diffstat (limited to 'usr.bin/awk/lib.c')
-rw-r--r--usr.bin/awk/lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/awk/lib.c b/usr.bin/awk/lib.c
index 0b58ed55e5a..87cc78ea58a 100644
--- a/usr.bin/awk/lib.c
+++ b/usr.bin/awk/lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib.c,v 1.48 2022/06/03 19:42:27 millert Exp $ */
+/* $OpenBSD: lib.c,v 1.49 2022/09/01 15:21:28 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
@@ -311,6 +311,7 @@ void setclvar(char *s) /* set var=value from s */
q->tval |= NUM;
}
DPRINTF("command line set %s to |%s|\n", s, p);
+ free(p);
*e = '=';
}