Date: Tue, 26 Apr 2016 23:23:44 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298676 - head/sys/netipsec Message-ID: <201604262323.u3QNNi2d091295@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604262323.u3QNNi2d091295>