Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 08:49:29 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r299627 - stable/10/sys/netipsec
Message-ID:  <201605130849.u4D8nTTM068637@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri May 13 08:49:29 2016
New Revision: 299627
URL: https://svnweb.freebsd.org/changeset/base/299627

Log:
  MFC r298676:
  r298676 (by cem):
  
  netipsec: Don't leak memory when deep copy fails
  
  CID:		1331693

Modified:
  stable/10/sys/netipsec/ipsec.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netipsec/ipsec.c
==============================================================================
--- stable/10/sys/netipsec/ipsec.c	Fri May 13 08:46:13 2016	(r299626)
+++ stable/10/sys/netipsec/ipsec.c	Fri May 13 08:49:29 2016	(r299627)
@@ -940,6 +940,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?201605130849.u4D8nTTM068637>