evas - fb engine - fix mem leak if ioctl fails on fb mode

this fixes CID 1137852
This commit is contained in:
Carsten Haitzler 2013-12-15 11:25:56 +09:00
parent f1fa8de149
commit 5dfe3789f2
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ _server_connect(void)
len = strlen(remote.sun_path) + sizeof(remote.sun_family);
if (connect(s, (struct sockaddr *)&remote, len) == -1)
{
close(s);
ERR("connect");
return EINA_FALSE;
}

View File

@ -322,6 +322,7 @@ fb_getmode(void)
if (ioctl(fb, FBIOGET_VSCREENINFO, &mode->fb_var) == -1)
{
perror("ioctl FBIOGET_VSCREENINFO");
free(mode);
return NULL;
}