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>
This commit is contained in:
parent
68b80f1138
commit
8a548868db
net/netfilter
|
@ -1799,6 +1799,7 @@ err3:
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue