platform-drivers-x86: intel_mid_thermal: fix memory leak
authorAxel Lin <axel.lin@gmail.com>
Wed, 6 Jul 2011 15:40:51 +0000 (23:40 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 5 Aug 2011 18:46:11 +0000 (14:46 -0400)
commit03f8952cf63b6059e56074be6ed450dc7739cdee
treefbbd5410b36f457d4446ba77e2cff7fae5da3ff6
parent94ee48b9287c5c22c90754a48dbcf80b2df99d5f
platform-drivers-x86: intel_mid_thermal: fix memory leak

The memory for td_info which is allocated in initialize_sensor()
should be properly kfreed in mid_thermal_probe() error patch and
mid_thermal_remove().

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