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 95da1a2..99e385d 100644 (file)
@@ -1799,6 +1799,7 @@ err3:
 err2:
        nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]);
 err1:
+       kfree(h323_buffer);
        return ret;
 }