diff options
| author | Daniel Lezcano <[email protected]> | 2024-10-24 10:59:38 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-10-24 13:58:57 +0000 |
| commit | 7569406e95f2353070d88ebc88e8c13698542317 (patch) | |
| tree | 0628b253d6431084821a468a1e624f8144440e0e /security/selinux/hooks.c | |
| parent | thermal: thresholds: Fix thermal lock annotation issue (diff) | |
| download | kernel-7569406e95f2353070d88ebc88e8c13698542317.tar.gz kernel-7569406e95f2353070d88ebc88e8c13698542317.zip | |
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 <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Fixed up the !msg error path, added Fixes tag ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
