]> Git Repo - linux.git/commitdiff
hwmon: (asus_atk0110) Fix memory leak
authorLuca Tettamanti <[email protected]>
Sun, 17 Jul 2011 16:39:18 +0000 (18:39 +0200)
committerJean Delvare <[email protected]>
Sun, 17 Jul 2011 16:39:18 +0000 (18:39 +0200)
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]
drivers/hwmon/asus_atk0110.c

index dcb78a7a804754956035f2c57e2e1f8673ac45df..00e98517f94c6d5bbb26e384cb08bb687b00cc16 100644 (file)
@@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
        else
                err = -EIO;
 
+       ACPI_FREE(ret);
        return err;
 }
 
This page took 0.062793 seconds and 4 git commands to generate.