backlight - fix string ptr leak

fix CID 1425215
This commit is contained in:
Carsten Haitzler 2020-04-19 00:06:08 +01:00
parent 1617659255
commit 4749e1e065
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}