summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-05-11 16:58:08 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-05-12 11:08:07 -0500
commitac020b1145d9991b73972f6015aa2a8ebaa9249e (patch)
treed0f2d46f54dfe389fc4b488361037f88328aaf3b
parent384ae63efc9d676414c45591c9b6095197919513 (diff)
downloadFreeBSD-src-ac020b1145d9991b73972f6015aa2a8ebaa9249e.zip
FreeBSD-src-ac020b1145d9991b73972f6015aa2a8ebaa9249e.tar.gz
MFC r298676:
netipsec: Don't leak memory when deep copy fails Reported by: Coverity CID: 1331693 Sponsored by: EMC / Isilon Storage Division TAG: IPSEC-HEAD (cherry picked from commit 736b7527cfdc5c4f0f0a91ddfaef07ea86ea0e58)
-rw-r--r--sys/netipsec/ipsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 6738dbf..0ee3d1a 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -946,6 +946,7 @@ fail:
ipsec_delisr(p);
p = NULL;
}
+ KEY_FREESP(&dst);
return (NULL);
}
OpenPOWER on IntegriCloud