raster pushed a commit to branch master.

commit e1e50b83875bcddf226802483305bcfab9a42ce4
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jul 16 17:54:26 2013 +0900

    fix clang bad free complaint
---
 src/lib/ecore_ipc/ecore_ipc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 5dfb636..fb1187d 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -1468,6 +1468,7 @@ _ecore_ipc_event_server_data(void *data EINA_UNUSED, int 
ev_type EINA_UNUSED, vo
                   int max;
 
                   if (buf) free(buf);
+                  if (buf == svr->buf) svr->buf = NULL;
                   buf = NULL;
                   max = svr->max_buf_size;
                   if ((max < 0) || (msg.size <= max))

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to