diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-12-20 17:44:51 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-12-20 17:44:51 +0000 |
commit | 830bc77368ccc4dd0a51eeff2ad813ce85252fbf (patch) | |
tree | 6d6614def408c31b3e9bb03619d73ebf65acee2d /sbin | |
parent | 3b723aedc086b3d0a6f8e7454a74cd1b7fabf41c (diff) |
Don't leak ipsec_hosts when building hosts_list.
ok patrick@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y index 62e7b956659..b7c22d6543e 100644 --- a/sbin/iked/parse.y +++ b/sbin/iked/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.121 2020/12/15 21:47:10 tobhe Exp $ */ +/* $OpenBSD: parse.y,v 1.122 2020/12/20 17:44:50 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -690,6 +690,7 @@ hosts_list : hosts { $$ = $1; } $1->dst->tail->next = $3->dst; $1->dst->tail = $3->dst->tail; $$ = $1; + free($3); } } ; |