projects
/
platform
/
upstream
/
kernel-adaptation-pc.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
95da1a2
..
99e385d
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;
}