commit | 5d17d3b4bbf3becb89fd48b74340a50a39736f6d | [log] [tgz] |
---|---|---|
author | Quentin Schulz <quentin.schulz@free-electrons.com> | Tue Jul 26 09:47:09 2016 +0200 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Jul 31 15:02:52 2016 -0700 |
tree | 879614286b3ba1b112f2bd246ab79d0ade44fc28 | |
parent | 4c8702b3cd43322ca97fdc7f647e273a7388a0c6 [diff] |
hwmon: (iio_hwmon) fix memory leak in name attribute The "name" variable's memory is now freed when the device is destructed thanks to devm function. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: e0f8a24e0edfd ("staging:iio::hwmon interface client driver.") Fixes: 61bb53bcbdd86 ("hwmon: (iio_hwmon) Add support for humidity sensors") Signed-off-by: Guenter Roeck <linux@roeck-us.net>