From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: [patch 13/15] nf_conntrack_h323: fix memory leak in module initialization error path Date: Thu, 19 Jun 2008 14:30:09 -0700 Message-ID: <20080619213009.GN20267@suse.de> References: <20080619211313.834170620@mini.kroah.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Justin Forbes , Zwane Mwaikambo , Theodore Ts'o , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, netfilter-devel@vger.kernel.org, Patrick McHardy , davem@davemloft.net To: linux-kernel@vger.kernel.org, stable@kernel.org Return-path: Received: from cantor2.suse.de ([195.135.220.15]:42766 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752798AbYFSVce (ORCPT ); Thu, 19 Jun 2008 17:32:34 -0400 Content-Disposition: inline; filename="nf_conntrack_h323-fix-memory-leak-in-module-initialization-error-path.patch" In-Reply-To: <20080619212621.GA20267@suse.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: 2.6.25-stable review patch. If anyone has any objections, please let us know. ------------------ From: Patrick McHardy netfilter: nf_conntrack_h323: fix memory leak in module initialization error path Upstream commit 8a548868db62422113104ebc658065e3fe976951 Properly free h323_buffer when helper registration fails. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nf_conntrack_h323_main.c | 1 + 1 file changed, 1 insertion(+) --- a/net/netfilter/nf_conntrack_h323_main.c +++ b/net/netfilter/nf_conntrack_h323_main.c @@ -1799,6 +1799,7 @@ err3: err2: nf_conntrack_helper_unregister(&nf_conntrack_helper_h245); err1: + kfree(h323_buffer); return ret; } --