eh I guess I'll clean up a little bit on failure too

SVN revision: 54074
This commit is contained in:
Mike Blumenkrantz 2010-11-01 07:11:25 +00:00
parent 025cfe4c67
commit 57cee09e0d
1 changed files with 5 additions and 2 deletions

View File

@ -2101,8 +2101,11 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
{
unsigned char *tmp;
if (!(tmp = realloc(inbuf, inbuf_num + num)))
/* FIXME: this should probably do something */
break;
{
/* FIXME: this should probably do something, but what? */
free(inbuf);
break;
}
inbuf = tmp;
memcpy(inbuf + inbuf_num, buf, num);
inbuf_num += num;