Skip to content

Commit

Permalink
netfilter: nf_conntrack_h323: fix memory leak in module initializatio…
Browse files Browse the repository at this point in the history
…n 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>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jun 17, 2008
1 parent 68b80f1 commit 8a54886
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/nf_conntrack_h323_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,7 @@ static int __init nf_conntrack_h323_init(void)
err2:
nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
err1:
kfree(h323_buffer);
return ret;
}

Expand Down

0 comments on commit 8a54886

Please sign in to comment.