diff options
| author | 2015-05-13 15:06:11 -0300 | |
|---|---|---|
| committer | 2015-05-17 09:10:05 +0100 | |
| commit | 9ecdbed7903921f29adae63a3155814b453e7186 (patch) | |
| tree | 15df9a0a39652d7fd089c5789be00c436cb70606 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | iio: gyro: hid-sensor-gyro-3d: Fix memory leak in probe() (diff) | |
iio: light: hid-sensor-als.c: 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 <fabio.estevam@freescale.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
