From: Jesper Juhl Date: Mon, 15 Oct 2007 08:39:12 +0000 (-0700) Subject: [NETLINK]: Don't leak 'listeners' in netlink_kernel_create() X-Git-Tag: v2.6.24-rc1~1277^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f937f1f46b6d2f9bef94e0d6b769a4c67615d34e;p=pandora-kernel.git [NETLINK]: Don't leak 'listeners' in netlink_kernel_create() The Coverity checker spotted that we'll leak the storage allocated to 'listeners' in netlink_kernel_create() when the if (!nl_table[unit].registered) check is false. This patch avoids the leak. Signed-off-by: Jesper Juhl Acked-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed