summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-18 06:45:40 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-22 00:39:54 +0300
commitfcd5ce4b3936242e6679875a4d3c3acfc8743e15 (patch)
tree9cf83bada0c8eda435b7790885fc3c351c9abd69 /tools/perf/scripts/python/export-to-sqlite.py
parentb1da86fce4299ab1060a5e878696d29ce29fed6e (diff)
downloadlinux-fcd5ce4b3936242e6679875a4d3c3acfc8743e15.tar.xz
media: dvb-core: fix a memory leak bug
In dvb_create_media_entity(), 'dvbdev->entity' is allocated through kzalloc(). Then, 'dvbdev->pads' is allocated through kcalloc(). However, if kcalloc() fails, the allocated 'dvbdev->entity' is not deallocated, leading to a memory leak bug. To fix this issue, free 'dvbdev->entity' before returning -ENOMEM. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions