aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-19 16:00:02 -0500
committerGuenter Roeck <[email protected]>2019-08-31 08:04:57 -0700
commite027a2dea5fdde05740a98f571fc2903060559ce (patch)
treeedc75af2c0a56bd09f9d9773009457e7ab2fdcf3 /tools/perf/scripts/python
parent7d82fcc9d9e81241778aaa22fda7be753e237d86 (diff)
hwmon (coretemp) Fix a memory leak bug
In coretemp_init(), 'zone_devices' is allocated through kcalloc(). However, it is not deallocated in the following execution if platform_driver_register() fails, leading to a memory leak. To fix this issue, introduce the 'outzone' label to free 'zone_devices' before returning the error. Signed-off-by: Wenwen Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions