Skip to content

Commit

Permalink
hwmon: (asus_atk0110) Fix memory leak
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
tettamanti authored and Jean Delvare committed Jul 17, 2011
1 parent 1765a36 commit 0b8e77f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/asus_atk0110.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
else
err = -EIO;

ACPI_FREE(ret);
return err;
}

Expand Down

0 comments on commit 0b8e77f

Please sign in to comment.