barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=400f3932d9a5adb3bc6c360368793a855d5228d8

commit 400f3932d9a5adb3bc6c360368793a855d5228d8
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Wed Nov 23 22:15:25 2016 -0200

    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 82d5819..15f8edd 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;
 

-- 


Reply via email to