summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2020-09-18 17:38:19 +0000
committertobhe <tobhe@openbsd.org>2020-09-18 17:38:19 +0000
commitd9446681d35bc34e85a5ee547d4aedf077fed4bb (patch)
tree9f9d41af76235610034a623bd78b766108335495
parentIf ssl_cert_dup() fails in SSL_set_SSL_CTX(3), return failure (diff)
downloadwireguard-openbsd-d9446681d35bc34e85a5ee547d4aedf077fed4bb.tar.xz
wireguard-openbsd-d9446681d35bc34e85a5ee547d4aedf077fed4bb.zip
Fix memory leak in 'n->name'.
-rw-r--r--sbin/iked/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index bc68823e750..28c5b2cdfa7 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.111 2020/09/16 21:21:23 tobhe Exp $ */
+/* $OpenBSD: parse.y,v 1.112 2020/09/18 17:38:19 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -2247,6 +2247,7 @@ ifa_lookup(const char *ifa_name)
/* for now we can not handle link local,
* therefore bail for now
*/
+ free(n->name);
free(n);
continue;