raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=4749e1e065e56354afd929499b6294694c157601
commit 4749e1e065e56354afd929499b6294694c157601 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Sun Apr 19 00:06:08 2020 +0100 backlight - fix string ptr leak fix CID 1425215 --- src/bin/e_backlight.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index 674de430f..d067cdd9e 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -146,9 +146,13 @@ _backlight_devices_zone_device_find(E_Zone *zone) if ((bd->output) && (!strcmp(out, bd->output))) { if ((edid[0] && (!strcmp(edid, bd->edid))) || (!edid[0])) - return bd; + { + free(tmp); + return bd; + } } } + free(tmp); return NULL; } --
