Quentin Schulz 5d17d3b4bb 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>
2016-07-31 15:02:52 -07:00
..
2014-01-29 20:40:08 +01:00
2015-05-31 22:58:36 -07:00
2014-08-04 07:01:35 -07:00
2016-06-27 18:58:04 -07:00
2016-04-19 06:32:38 -07:00
2014-08-04 07:01:36 -07:00
2016-07-31 15:02:51 -07:00
2013-03-18 21:19:49 +01:00
2014-08-05 19:44:42 -07:00
2016-07-31 15:02:51 -07:00
2014-08-04 07:01:35 -07:00
2016-03-05 06:25:34 -08:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2015-08-10 23:00:10 -07:00
2015-06-21 22:54:53 -07:00