aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2021-03-19 21:22:57 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-04-15 13:21:00 +0200
commitd44616c6cc3e35eea03ecfe9040edfa2b486a059 (patch)
treeeafa525c18cf902c9cbb38705cccf1b5484e1ef9 /tools/perf/scripts/python/exported-sql-viewer.py
parentef6e01af398acff63eb33c58e72839e50a3e1c4b (diff)
downloadlinux-d44616c6cc3e35eea03ecfe9040edfa2b486a059.tar.gz
linux-d44616c6cc3e35eea03ecfe9040edfa2b486a059.tar.bz2
linux-d44616c6cc3e35eea03ecfe9040edfa2b486a059.zip
thermal/core: Fix memory leak in the error path
Fix the following error: smatch warnings: drivers/thermal/thermal_core.c:1020 __thermal_cooling_device_register() warn: possible memory leak of 'cdev' by freeing the cdev when exiting the function in the error path. Fixes: 584837618100 ("thermal/drivers/core: Use a char pointer for the cooling device name") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210319202257.890848-1-daniel.lezcano@linaro.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions