]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nf_conntrack_h323: fix memory leak in module initialization error path
authorPatrick McHardy <kaber@trash.net>
Thu, 19 Jun 2008 13:05:45 +0000 (15:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 22 Jun 2008 05:24:56 +0000 (22:24 -0700)
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>
net/netfilter/nf_conntrack_h323_main.c

index ea48f71845145286805de0fdb5255b30ee92678e..7407dd37b4e8252f3c015858505411d866e36448 100644 (file)
@@ -1799,6 +1799,7 @@ err3:
 err2:
        nf_conntrack_helper_unregister(&nf_conntrack_helper_h245);
 err1:
+       kfree(h323_buffer);
        return ret;
 }