Commit 8a548868db62422113104ebc658065e3fe976951

Authored by Patrick McHardy
Committed by David S. Miller
1 parent 68b80f1138

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/netfilter/nf_conntrack_h323_main.c
... ... @@ -1799,6 +1799,7 @@
1799 1799 err2:
1800 1800 nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
1801 1801 err1:
  1802 + kfree(h323_buffer);
1802 1803 return ret;
1803 1804 }
1804 1805