From 400f3932d9a5adb3bc6c360368793a855d5228d8 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 23 Nov 2016 22:15:25 -0200 Subject: [PATCH] ecore_ipc: fix user after free in error handling. Fixes Coverity 1366274. --- src/lib/ecore_ipc/ecore_ipc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c index 82d58194f0..15f8edd1a2 100644 --- a/src/lib/ecore_ipc/ecore_ipc.c +++ b/src/lib/ecore_ipc/ecore_ipc.c @@ -509,10 +509,7 @@ ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void EINA_SAFETY_ON_NULL_GOTO(address, error_server); if (!_ecore_ipc_local_mkpath(address, S_IRUSR | S_IWUSR | S_IXUSR)) - { - free(address); - goto error_server; - } + goto error_server; new_mask = S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH;