OSDN Git Service

thinkpad_acpi: Fix a memory leak during module exit
authorLi Dongyang <jerry87905@gmail.com>
Wed, 25 Jul 2012 00:45:08 +0000 (10:45 +1000)
committerMatthew Garrett <mjg@redhat.com>
Sat, 28 Jul 2012 04:28:56 +0000 (00:28 -0400)
commitd2be15bdda45b184d483754e434c9a1c8ed80a8e
tree1dfd7e5474bac94f2210da92c6c3e2c27e81614a
parente03e389da50dd967f20470e58827abe7a532c5a5
thinkpad_acpi: Fix a memory leak during module exit

We should free the thinkpad_id.nummodel_str during exit as it's allocated
in get_thinkpad_module_data().

Signed-off-by: Li Dongyang <Jerry87905@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/thinkpad_acpi.c