commit | 0b8e77f12cb6bfe2e5a67f2cdc8c7af23abc4ccf | [log] [tgz] |
---|---|---|
author | Luca Tettamanti <kronos.it@gmail.com> | Sun Jul 17 18:39:18 2011 +0200 |
committer | Jean Delvare <khali@endymion.delvare> | Sun Jul 17 18:39:18 2011 +0200 |
tree | 5df41a3dfae9282cf723bd0752c6fd2c9fa6820f | |
parent | 1765a367a3b5d5e9692949b0c5ec933eff2c0701 [diff] [blame] |
hwmon: (asus_atk0110) Fix memory leak The object returned by atk_gitm is dynamically allocated and must be freed. Signed-off-by: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index dcb78a7..00e9851 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c
@@ -674,6 +674,7 @@ else err = -EIO; + ACPI_FREE(ret); return err; }