summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2015-07-28 01:08:11 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-07-28 03:05:37 +0200
commit88b2bfe4354fdbd975d11096108d6e486918f0c6 (patch)
tree34496df53e13afd435d9f797890fe7a3e248512c /src/lib/ecore_ipc
parentf3768834c52d37f1cc13d4293e3322180ff5d6d7 (diff)
ecore_ipc: remove redundant code
Summary: buf is always NULL (already freed and set to NULL). We don't need to add NULL checking and free it. Reviewers: raster, cedric, Hermet Subscribers: seoz, cedric Differential Revision: https://phab.enlightenment.org/D2783 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_ipc')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 78f725a3aa..4588199c1a 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -1506,12 +1506,11 @@ _ecore_ipc_event_server_data(void *data EINA_UNUSED, int ev_type EINA_UNUSED, vo
1506 } 1506 }
1507 svr->prev.i = msg; 1507 svr->prev.i = msg;
1508 offset += (s + msg.size); 1508 offset += (s + msg.size);
1509 if ((svr->buf_size == offset) && ((svr->buf) || (buf))) 1509 if ((svr->buf_size == offset) && (svr->buf))
1510 { 1510 {
1511 if (svr->buf) free(svr->buf); 1511 if (svr->buf) free(svr->buf);
1512 svr->buf = NULL; 1512 svr->buf = NULL;
1513 svr->buf_size = 0; 1513 svr->buf_size = 0;
1514 if (buf) free(buf);
1515 return ECORE_CALLBACK_CANCEL; 1514 return ECORE_CALLBACK_CANCEL;
1516 } 1515 }
1517 goto redo; 1516 goto redo;