diff options
author | Gaosheng Cui <[email protected]> | 2024-10-09 16:28:02 +0800 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-10-12 16:28:26 +0200 |
commit | 0f514068fbc5d4d189c817adc7c4e32cffdc2e47 (patch) | |
tree | b3cfdb8cddee71f2c39fcc06024e3dbf4801a926 /tools/perf/scripts/python/task-analyzer.py | |
parent | 869f38ae07f7df829da4951c3d1f7a2be09c2e9a (diff) |
media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal()
The buffer in the loop should be released under the exception path,
otherwise there may be a memory leak here.
To mitigate this, free the buffer when allegro_alloc_buffer fails.
Fixes: f20387dfd065 ("media: allegro: add Allegro DVT video IP core driver")
Cc: <[email protected]>
Signed-off-by: Gaosheng Cui <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions