From: Jesper Juhl Date: Fri, 19 May 2006 09:15:13 +0000 (-0700) Subject: [NETFILTER]: Fix memory leak in ipt_recent X-Git-Tag: v2.6.17-rc5~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=493e2428aa1db0e592736ad15885c6ed1e81b8af;p=pandora-kernel.git [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 Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed