summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 18:58:20 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 18:58:20 +0900
commit59ea842b22d14be0ccb568e6662f62635229ab95 (patch)
treebe61c90a70e3c41fa0e681d26726d9eba9406ab3 /src/lib/ecore_ipc
parentd12b6e6fa171e1ce4e77a460a402d7150344677f (diff)
fix clang bad free better. :)
Diffstat (limited to 'src/lib/ecore_ipc')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index fb1187d52d..03be3cf38c 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -1467,8 +1467,7 @@ _ecore_ipc_event_server_data(void *data EINA_UNUSED, int ev_type EINA_UNUSED, vo
1467 Ecore_Ipc_Event_Server_Data *e2; 1467 Ecore_Ipc_Event_Server_Data *e2;
1468 int max; 1468 int max;
1469 1469
1470 if (buf) free(buf); 1470 if (buf != svr->buf) free(buf);
1471 if (buf == svr->buf) svr->buf = NULL;
1472 buf = NULL; 1471 buf = NULL;
1473 max = svr->max_buf_size; 1472 max = svr->max_buf_size;
1474 if ((max < 0) || (msg.size <= max)) 1473 if ((max < 0) || (msg.size <= max))
@@ -1503,6 +1502,16 @@ _ecore_ipc_event_server_data(void *data EINA_UNUSED, int ev_type EINA_UNUSED, vo
1503 _ecore_ipc_event_server_data_free, 1502 _ecore_ipc_event_server_data_free,
1504 NULL); 1503 NULL);
1505 } 1504 }
1505 else
1506 {
1507 free(buf);
1508 buf = NULL;
1509 }
1510 }
1511 else
1512 {
1513 free(buf);
1514 buf = NULL;
1506 } 1515 }
1507 } 1516 }
1508 svr->prev.i = msg; 1517 svr->prev.i = msg;