summaryrefslogtreecommitdiff
path: root/usr.sbin/acme-client/parse.y
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-04-26 14:12:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-04-26 14:12:20 +0000
commitf936e0f3e9cc3e8d0c5e093bb0ef9ae2483d60a0 (patch)
treee4f4fba1bac608324e64cd44d66aa2503949b90e /usr.sbin/acme-client/parse.y
parentd8d7c5e8de3ef6f6275cb2515b7088d50c1651d7 (diff)
Plug leak in error case of the common 'varset' implementations.
ok benno@
Diffstat (limited to 'usr.sbin/acme-client/parse.y')
-rw-r--r--usr.sbin/acme-client/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/acme-client/parse.y b/usr.sbin/acme-client/parse.y
index 1630b85b5c4..dbc290561af 100644
--- a/usr.sbin/acme-client/parse.y
+++ b/usr.sbin/acme-client/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.20 2018/04/08 19:10:12 florian Exp $ */
+/* $OpenBSD: parse.y,v 1.21 2018/04/26 14:12:19 krw Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -148,6 +148,8 @@ varset : STRING '=' string {
if (isspace((unsigned char)*s)) {
yyerror("macro name cannot contain "
"whitespace");
+ free($1);
+ free($3);
YYERROR;
}
}