提交 8a548868 编写于 作者: P Patrick McHardy 提交者: David S. Miller

netfilter: nf_conntrack_h323: fix memory leak in module initialization error path

Properly free h323_buffer when helper registration fails.
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 68b80f11
...@@ -1799,6 +1799,7 @@ static int __init nf_conntrack_h323_init(void) ...@@ -1799,6 +1799,7 @@ static int __init nf_conntrack_h323_init(void)
err2: err2:
nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]); nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
err1: err1:
kfree(h323_buffer);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册