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 <kaber@xxxxxxxxx> --- commit bed6cb858aec9a01eefee7fe4d3bfb7581da4863 tree 8e28d749ebef47da42f00b708b30c4df0e230363 parent 6a5696d1b52e24202682359b54775260fb4cbb54 author Patrick McHardy <kaber@xxxxxxxxx> Tue, 17 Jun 2008 15:36:38 +0200 committer Patrick McHardy <kaber@xxxxxxxxx> Tue, 17 Jun 2008 15:36:38 +0200 net/netfilter/nf_conntrack_h323_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c index 95da1a2..99e385d 100644 --- a/net/netfilter/nf_conntrack_h323_main.c +++ b/net/netfilter/nf_conntrack_h323_main.c @@ -1799,6 +1799,7 @@ err3: err2: nf_conntrack_helper_unregister(&nf_conntrack_helper_q931[0]); err1: + kfree(h323_buffer); return ret; } -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html