summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-06-08 20:27:42 +0900
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-15 15:41:59 +0200
commitebbc6a3c2de2218092a78b9b1ead82750fbedb18 (patch)
tree94ac1ce9e8f14137dbdd02b9b658cc58877953e7
parent909dd07ba83d8a7af170f28d6c61d093c4fe92aa (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
-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);