From 3fa10e9b4c7223169b4d75fdeaed575ad044bb52 Mon Sep 17 00:00:00 2001 From: tobhe Date: Mon, 11 Apr 2022 20:41:21 +0000 Subject: [PATCH] Fix leak of esnxf if esn ore noesn are configured explicitly. --- sbin/iked/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y index c714e569b50..dc02311ef3a 100644 --- a/sbin/iked/parse.y +++ b/sbin/iked/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.139 2021/12/23 09:15:59 jsg Exp $ */ +/* $OpenBSD: parse.y,v 1.140 2022/04/11 20:41:21 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -2919,6 +2919,7 @@ done: free(ipsec_sa->xfs[i]->encxf); free(ipsec_sa->xfs[i]->groupxf); free(ipsec_sa->xfs[i]->prfxf); + free(ipsec_sa->xfs[i]->esnxf); free(ipsec_sa->xfs[i]); } free(ipsec_sa->xfs); -- 2.20.1