diff options
| author | Fabio Estevam <[email protected]> | 2015-05-13 15:06:14 -0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2015-05-17 09:10:33 +0100 |
| commit | c24e7daf823256c83ce3efe6fa9b9b8ab5b78480 (patch) | |
| tree | e47a7700d2a5e1f59053362ca9fbe2c2f6039611 /tools/perf/scripts/python | |
| parent | 2bd04628435ff57a2fefa71e7d3e5c005db5c978 (diff) | |
iio: pressure: hid-sensor-press: Fix memory leak in probe()
'channels' is allocated via kmemdup and it is never freed in the
subsequent error paths.
Use 'indio_dev->channels' directly instead, so that we avoid such
memory leak problem.
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions