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:
Mun, Gwan-gyeong 2015-03-24 09:11:07 -04:00 committed by Chris Michael
parent 56dc26f0b9
commit 3c056419d7
1 changed files with 0 additions and 1 deletions

View File

@ -202,7 +202,6 @@ _ecore_drm_logind_connect(Ecore_Drm_Device *dev)
if (sd_session_get_seat(dev->session, &seat) < 0)
{
ERR("Could not get systemd seat: %m");
free(seat);
return EINA_FALSE;
}
else if (strcmp(dev->seat, seat))