summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc/ecore_ipc.c
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-06-08 20:27:42 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-08 20:27:42 +0900
commita02deffad70a2841084465a3809bb2e035ccf1a0 (patch)
tree2917c8a431e2652995a6c1c6a78c37b2ca1ae5e6 /src/lib/ecore_ipc/ecore_ipc.c
parentb2f9b0e24f09a65f640269c59b5e33a2689933bb (diff)
ecore_ipc: Fix memory leak
Summary: As delete_me flag was not updated in the delete callback it dosen't call ecore_ipc_client_del() on the client hence the leak. Reviewers: Hermet, raster, bu5hm4n, CHAN Reviewed By: Hermet, CHAN Subscribers: CHAN, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11927
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index f6f7fee463..bd4d76bc65 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -277,6 +277,8 @@ ecore_ipc_post_event_client_del(Ecore_Ipc_Client *cl)
277 Ecore_Ipc_Event_Client_Del *ev; 277 Ecore_Ipc_Event_Client_Del *ev;
278 278
279 if (cl->delete_me) return; 279 if (cl->delete_me) return;
280
281 cl->delete_me = EINA_TRUE;
280 282
281 ev = calloc(1, sizeof(Ecore_Ipc_Event_Client_Del)); 283 ev = calloc(1, sizeof(Ecore_Ipc_Event_Client_Del));
282 EINA_SAFETY_ON_NULL_RETURN(ev); 284 EINA_SAFETY_ON_NULL_RETURN(ev);