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:
Patrick McHardy 2008-06-17 15:52:07 -07:00 committed by David S. Miller
parent 68b80f1138
commit 8a548868db
1 changed files with 1 additions and 0 deletions

View File

@ -1799,6 +1799,7 @@ err3:
err2:
nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
err1:
kfree(h323_buffer);
return ret;
}