projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b80f1
)
netfilter: nf_conntrack_h323: fix memory leak in module initialization error path
author
Patrick McHardy
<kaber@trash.net>
Tue, 17 Jun 2008 22:52:07 +0000
(15:52 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 Jun 2008 22:52:07 +0000
(15:52 -0700)
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>
net/netfilter/nf_conntrack_h323_main.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_h323_main.c
b/net/netfilter/nf_conntrack_h323_main.c
index 95da1a24aab786e31eecd1a983a67faa81b44de0..99e385d5b707eab5690ce436afacef46a4e5c747 100644
(file)
--- 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;
}