Re: [PATCH nf v2 1/1] netfilter: xt_CT: Fix one possible memleak of timeout

2017-04-13 Thread Pablo Neira Ayuso
On Thu, Apr 06, 2017 at 07:19:34PM +0800, gfree.w...@foxmail.com wrote: > From: Gao Feng > > When nf_ct_timeout_ext_add failed in xt_ct_set_timeout, it should > free the timeout refcnt. > > Now goto the err_put_timeout error handler instead of going ahead. > > Signed-off-by:

[PATCH nf v2 1/1] netfilter: xt_CT: Fix one possible memleak of timeout

2017-04-06 Thread gfree . wind
From: Gao Feng When nf_ct_timeout_ext_add failed in xt_ct_set_timeout, it should free the timeout refcnt. Now goto the err_put_timeout error handler instead of going ahead. Signed-off-by: Gao Feng --- v2: Keep the ret = -ENOMEM, per Gao Feng v1: initial