netfilter: ctnetlink: fix leak in error path of ctnetlink_create_expect
authorJesper Juhl <jj@chaosbits.net>
Wed, 26 Dec 2012 11:49:40 +0000 (11:49 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Dec 2012 22:02:09 +0000 (23:02 +0100)
commit1310b955c804975651dca6c674ebfd1cb2b4c7ff
treee12e4e24230c5fb5eeb9c7c4fe6e150ea05307c0
parent32263dd1b43378b4f7d7796ed713f77e95f27e8a
netfilter: ctnetlink: fix leak in error path of ctnetlink_create_expect

This patch fixes a leak in one of the error paths of
ctnetlink_create_expect if no helper and no timeout is specified.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c