From: Ameya Palande <2ameya@gmail.com> Date: Thu, 7 Apr 2011 13:30:02 +0000 (+0300) Subject: platform-x86: intel_mid_thermal: Fix memory leak X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=239dca9e9aff6630c22fef696978ba3a878f7d96;p=linux-beck.git platform-x86: intel_mid_thermal: Fix memory leak Signed-off-by: Ameya Palande <2ameya@gmail.com> Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c index f0776504521f..3a578323122b 100644 --- a/drivers/platform/x86/intel_mid_thermal.c +++ b/drivers/platform/x86/intel_mid_thermal.c @@ -527,6 +527,7 @@ static int mid_thermal_remove(struct platform_device *pdev) for (i = 0; i < MSIC_THERMAL_SENSORS; i++) thermal_zone_device_unregister(pinfo->tzd[i]); + kfree(pinfo); platform_set_drvdata(pdev, NULL); /* Stop the ADC */