Commit b2e4b1cc4a1bfa05582949065a2c97ce7ab3caa3

Authored by Patrick McHardy
Committed by Greg Kroah-Hartman
1 parent 3423e2b45e

nf_conntrack_h323: fix memory leak in module initialization error path

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

Upstream commit 8a548868db62422113104ebc658065e3fe976951

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

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_h245);
1801 1801 err1:
  1802 + kfree(h323_buffer);
1802 1803 return ret;
1803 1804 }
1804 1805