aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-06-17 18:52:07 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-17 18:52:07 -0400
commit8a548868db62422113104ebc658065e3fe976951 (patch)
treee3956afadd1d46bedd38237e8b4866b506235367 /net
parent68b80f11380889996aa7eadba29dbbb5c29a5864 (diff)
netfilter: nf_conntrack_h323: fix memory leak in module initialization error path
Properly free h323_buffer when helper registration fails. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_h323_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 95da1a24aab7..99e385d5b707 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -1799,6 +1799,7 @@ err3:
1799err2: 1799err2:
1800 nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]); 1800 nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
1801err1: 1801err1:
1802 kfree(h323_buffer);
1802 return ret; 1803 return ret;
1803} 1804}
1804 1805