aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaniel Niv <[email protected]>2021-03-11 03:53:00 +0100
committerMauro Carvalho Chehab <[email protected]>2021-03-22 11:53:03 +0100
commitc759b2970c561e3b56aa030deb13db104262adfe (patch)
tree5299aabf6eb1a905eeb3faa3c165675cd4698636 /tools/perf/scripts/python
parentaa966274d62957c67126c28433e5a5e188516d3c (diff)
media: media/saa7164: fix saa7164_encoder_register() memory leak bugs
Add a fix for the memory leak bugs that can occur when the saa7164_encoder_register() function fails. The function allocates memory without explicitly freeing it when errors occur. Add a better error handling that deallocate the unused buffers before the function exits during a fail. Signed-off-by: Daniel Niv <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions