diff options
author | krw <krw@openbsd.org> | 2018-04-26 14:12:19 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2018-04-26 14:12:19 +0000 |
commit | 16a0a9064f4764345d45428585eeceb3fe50c4e9 (patch) | |
tree | 861ae2da025e21741699a25bf64eb18a94246c80 /usr.sbin/ldapd | |
parent | Prefer leaq+%rip-relative over movabsq (diff) | |
download | wireguard-openbsd-16a0a9064f4764345d45428585eeceb3fe50c4e9.tar.xz wireguard-openbsd-16a0a9064f4764345d45428585eeceb3fe50c4e9.zip |
Plug leak in error case of the common 'varset' implementations.
ok benno@
Diffstat (limited to 'usr.sbin/ldapd')
-rw-r--r-- | usr.sbin/ldapd/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y index a945dc32b43..85c4db7f760 100644 --- a/usr.sbin/ldapd/parse.y +++ b/usr.sbin/ldapd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.25 2017/08/28 06:00:05 florian Exp $ */ +/* $OpenBSD: parse.y,v 1.26 2018/04/26 14:12:19 krw Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org> @@ -365,6 +365,8 @@ varset : STRING '=' STRING { if (isspace((unsigned char)*s)) { yyerror("macro name cannot contain " "whitespace"); + free($1); + free($3); YYERROR; } } |