From: discomfitor Date: Mon, 1 Nov 2010 07:11:25 +0000 (+0000) Subject: eh I guess I'll clean up a little bit on failure too X-Git-Tag: build/2012-07-04.173327~1541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=000193272247edfaa3ced5a9c87f4c72a85e31a4;p=profile%2Fivi%2Fecore.git eh I guess I'll clean up a little bit on failure too git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@54074 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 21d3949..abc25ab 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -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;