]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.25.8/nf_conntrack_h323-fix-memory-leak-in-module-initialization-error-path.patch
Linux 2.6.25.8
[thirdparty/kernel/stable-queue.git] / releases / 2.6.25.8 / nf_conntrack_h323-fix-memory-leak-in-module-initialization-error-path.patch
CommitLineData
ac07e81b
GKH
1From stable-bounces@linux.kernel.org Thu Jun 19 06:06:18 2008
2From: Patrick McHardy <kaber@trash.net>
3Date: Thu, 19 Jun 2008 15:05:45 +0200 (MEST)
4Subject: nf_conntrack_h323: fix memory leak in module initialization error path
5To: stable@kernel.org
6Cc: netfilter-devel@vger.kernel.org, Patrick McHardy <kaber@trash.net>, davem@davemloft.net
7Message-ID: <20080619130544.26204.28566.sendpatchset@localhost.localdomain>
8
9From: Patrick McHardy <kaber@trash.net>
10
11netfilter: nf_conntrack_h323: fix memory leak in module initialization error path
12
13Upstream commit 8a548868db62422113104ebc658065e3fe976951
14
15Properly free h323_buffer when helper registration fails.
16
17Signed-off-by: Patrick McHardy <kaber@trash.net>
18Signed-off-by: David S. Miller <davem@davemloft.net>
19Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20
21---
22 net/netfilter/nf_conntrack_h323_main.c | 1 +
23 1 file changed, 1 insertion(+)
24
25--- a/net/netfilter/nf_conntrack_h323_main.c
26+++ b/net/netfilter/nf_conntrack_h323_main.c
27@@ -1799,6 +1799,7 @@ err3:
28 err2:
29 nf_conntrack_helper_unregister(&nf_conntrack_helper_h245);
30 err1:
31+ kfree(h323_buffer);
32 return ret;
33 }
34