efl-wl: free x11 pipe read buf on read fail

CID 1377520
This commit is contained in:
Mike Blumenkrantz 2017-07-12 12:00:52 -04:00
parent bad0d9dbd6
commit 39c70f1fa7
1 changed files with 6 additions and 2 deletions

View File

@ -273,8 +273,12 @@ x11_pipe_read(void *data, Ecore_Fd_Handler *fdh)
return ECORE_CALLBACK_RENEW;
}
if (len)
p->buf = eina_binbuf_manage_new(buf, len, 0);
_incr_upload(p);
{
p->buf = eina_binbuf_manage_new(buf, len, 0);
_incr_upload(p);
}
else
free(buf);
if (p->incr)
ecore_main_fd_handler_active_set(p->fdh, 0);
else