]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
netfilter: nf_conntrack_h323: fix memory leak in module initialization error path
authorPatrick McHardy <kaber@trash.net>
Tue, 17 Jun 2008 22:52:07 +0000 (15:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 22:52:07 +0000 (15:52 -0700)
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>
net/netfilter/nf_conntrack_h323_main.c

index 95da1a24aab786e31eecd1a983a67faa81b44de0..99e385d5b707eab5690ce436afacef46a4e5c747 100644 (file)
@@ -1799,6 +1799,7 @@ err3:
 err2:
        nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
 err1:
+       kfree(h323_buffer);
        return ret;
 }