From: Axel Lin Date: Wed, 30 Jun 2010 09:25:46 +0000 (+0800) Subject: dell-wmi: fix a memory leak X-Git-Tag: v2.6.36-rc1~579^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ab72e7ca7aed399b81a3ffec26d7353bd33581;p=pandora-kernel.git dell-wmi: fix a memory leak If dell_new_hk_type is true, dell_legacy_wmi_keymap will point to a memory allocated in setup_new_hk_map(). In this case, the memory is not freed in current implementation. This patch fixes the leak by kfree(dell_wmi_keymap) if dell_new_hk_type is true. Signed-off-by: Axel Lin Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed