forked from enlightenment/efl
ecore-drm: Fixed null pointer free
Summary: Fixed null pointer free when sd_session_get_seat() fails, it does not allocate string. Reviewers: zmike, cedric, raster, gwanglim, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2219
This commit is contained in:
parent
56dc26f0b9
commit
3c056419d7
|
@ -202,7 +202,6 @@ _ecore_drm_logind_connect(Ecore_Drm_Device *dev)
|
||||||
if (sd_session_get_seat(dev->session, &seat) < 0)
|
if (sd_session_get_seat(dev->session, &seat) < 0)
|
||||||
{
|
{
|
||||||
ERR("Could not get systemd seat: %m");
|
ERR("Could not get systemd seat: %m");
|
||||||
free(seat);
|
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
else if (strcmp(dev->seat, seat))
|
else if (strcmp(dev->seat, seat))
|
||||||
|
|
Loading…
Reference in New Issue