Skip to content

Commit 8a54886

Browse files
kaberdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 68b80f1 commit 8a54886

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_conntrack_h323_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,7 @@ static int __init nf_conntrack_h323_init(void)
17991799
err2:
18001800
nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
18011801
err1:
1802+
kfree(h323_buffer);
18021803
return ret;
18031804
}
18041805

0 commit comments

Comments
 (0)