Skip to content

Commit

Permalink
platform-x86: intel_mid_thermal: Fix memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Ameya Palande <2ameya@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Ameya Palande authored and Matthew Garrett committed May 27, 2011
1 parent cb8b646 commit 239dca9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/intel_mid_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 239dca9

Please sign in to comment.