summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2024-10-24 13:59:38 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-10-24 16:58:57 +0300
commit7569406e95f2353070d88ebc88e8c13698542317 (patch)
tree0628b253d6431084821a468a1e624f8144440e0e /tools/perf/scripts/python/intel-pt-events.py
parent54219ee4eaeb356e0c8e0a6609dc6b5c21e2170a (diff)
downloadlinux-7569406e95f2353070d88ebc88e8c13698542317.tar.xz
thermal/lib: Fix memory leak on error in thermal_genl_auto()
The function thermal_genl_auto() does not free the allocated message in the error path. Fix that by putting a out label and jump to it which will free the message instead of directly returning an error. Fixes: 47c4b0de080a ("tools/lib/thermal: Add a thermal library") Reported-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/20241024105938.1095358-1-daniel.lezcano@linaro.org [ rjw: Fixed up the !msg error path, added Fixes tag ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions