diff options
| author | 2015-05-13 15:06:10 -0300 | |
|---|---|---|
| committer | 2015-05-17 09:09:49 +0100 | |
| commit | d8c9d23e29e3d758ea477adaa95e28cbf3556518 (patch) | |
| tree | aa1b1039cadb4c710d0102b33498814c2065e654 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() (diff) | |
iio: gyro: hid-sensor-gyro-3d: 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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
