From: tobhe Date: Mon, 11 Apr 2022 20:41:21 +0000 (+0000) Subject: Fix leak of esnxf if esn ore noesn are configured explicitly. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3fa10e9b4c7223169b4d75fdeaed575ad044bb52;p=openbsd Fix leak of esnxf if esn ore noesn are configured explicitly. --- 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);