aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-17 03:42:24 -0300
committerMauro Carvalho Chehab <[email protected]>2019-08-21 18:39:54 -0300
commit8c3d3cdbd5dde9bc87d556d2daa9d771ac5254dc (patch)
tree12bbc92d50982d651fee2d8cbb3329f82b4d5a56 /tools/perf/scripts/python
parent9fc3ce31f5bde660197f35135e90a1cced58aa2c (diff)
media: dvb-frontends: fix memory leaks
In dib7000pc_detection(), 'tx' and 'rx' are allocated through kzalloc() respectively. However, if DiB7000PC is detected, they are not deallocated, leading to memory leaks. To fix this issue, create a label to free 'tx' and 'rx' before returning from the function. Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions