svn commit: r298676 - head/sys/netipsec
Conrad E. Meyer
cem at FreeBSD.org
Tue Apr 26 23:23:46 UTC 2016
Author: cem
Date: Tue Apr 26 23:23:44 2016
New Revision: 298676
URL: https://svnweb.freebsd.org/changeset/base/298676
Log:
netipsec: Don't leak memory when deep copy fails
Reported by: Coverity
CID: 1331693
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/netipsec/ipsec.c
Modified: head/sys/netipsec/ipsec.c
==============================================================================
--- head/sys/netipsec/ipsec.c Tue Apr 26 23:13:48 2016 (r298675)
+++ head/sys/netipsec/ipsec.c Tue Apr 26 23:23:44 2016 (r298676)
@@ -977,6 +977,7 @@ fail:
ipsec_delisr(p);
p = NULL;
}
+ KEY_FREESP(&dst);
return (NULL);
}
More information about the svn-src-head
mailing list