hwmon: (asus_atk0110) Fix memory leak

The object returned by atk_gitm is dynamically allocated and must be
freed.

Signed-off-by: Luca Tettamanti <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Cc: [email protected]
This commit is contained in:
Luca Tettamanti 2011-07-17 18:39:18 +02:00 • committed by Jean Delvare
commit 0b8e77f12c

View file

@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
else
err = -EIO;
ACPI_FREE(ret);
return err;
}