summaryrefslogtreecommitdiff
path: root/sbin/iked/parse.y
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-09-18 17:38:20 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-09-18 17:38:20 +0000
commitfd10c1266776bca64497da880c2ce75bb5f13466 (patch)
tree50468766edd53495f4b9e9deb5a896b91a47311f /sbin/iked/parse.y
parentca84fe9cf879059e579798d85cc6c0389ebafcd3 (diff)
Fix memory leak in 'n->name'.
Diffstat (limited to 'sbin/iked/parse.y')
-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;