diff options
author | Patrick McHardy <kaber@trash.net> | 2008-06-17 15:52:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 15:52:07 -0700 |
commit | 8a548868db62422113104ebc658065e3fe976951 (patch) | |
tree | e3956afadd1d46bedd38237e8b4866b506235367 | |
parent | 68b80f11380889996aa7eadba29dbbb5c29a5864 (diff) | |
download | kernel_samsung_crespo-8a548868db62422113104ebc658065e3fe976951.zip kernel_samsung_crespo-8a548868db62422113104ebc658065e3fe976951.tar.gz kernel_samsung_crespo-8a548868db62422113104ebc658065e3fe976951.tar.bz2 |
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>
-rw-r--r-- | net/netfilter/nf_conntrack_h323_main.c | 1 |
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 95da1a2..99e385d 100644 --- 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_q931[0]); err1: + kfree(h323_buffer); return ret; } |