fix clang bad free complaint

This commit is contained in:
Carsten Haitzler 2013-07-16 17:54:26 +09:00
parent a588851b8f
commit e1e50b8387
1 changed files with 1 additions and 0 deletions

View File

@ -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))