commit | 493e2428aa1db0e592736ad15885c6ed1e81b8af | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jesper.juhl@gmail.com> | Fri May 19 02:15:13 2006 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri May 19 02:15:13 2006 -0700 |
tree | abfa2a9540b4c84ce0cb33819398a792e3914ed9 | |
parent | a54c9d30dbb06391ec4422aaf0e1dc2c8c53bd3e [diff] |
[NETFILTER]: Fix memory leak in ipt_recent The Coverity checker spotted that we may leak 'hold' in net/ipv4/netfilter/ipt_recent.c::checkentry() when the following is true: if (!curr_table->status_proc) { ... if(!curr_table) { ... return 0; <-- here we leak. Simply moving an existing vfree(hold); up a bit avoids the possible leak. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>