wmi: fix memory leak in parse_wdg
authorAxel Lin <axel.lin@gmail.com>
Thu, 3 Jun 2010 03:45:45 +0000 (11:45 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:49 +0000 (09:48 -0400)
commita5167c5b3a842b865b0ca87202b95cc8a84c9e7e
tree306e318b77177938973b4f98a38c5e5a3482c7bc
parent410d44c74cf9942e3055d5b7d73953fac8efbacb
wmi: fix memory leak in parse_wdg

This patch properly kfree out.pointer and gblock in error path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c