summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-23 22:15:25 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-23 22:15:25 -0200
commit400f3932d9a5adb3bc6c360368793a855d5228d8 (patch)
tree2e080db89b5ecf55515ba458d7c66cc0e82fd079 /src/lib/ecore_ipc
parent6f3220ffc6140594792c596ebb452149e19be00f (diff)
ecore_ipc: fix user after free in error handling.
Fixes Coverity 1366274.
Diffstat (limited to 'src/lib/ecore_ipc')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c5
1 files changed, 1 insertions, 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
509 EINA_SAFETY_ON_NULL_GOTO(address, error_server); 509 EINA_SAFETY_ON_NULL_GOTO(address, error_server);
510 510
511 if (!_ecore_ipc_local_mkpath(address, S_IRUSR | S_IWUSR | S_IXUSR)) 511 if (!_ecore_ipc_local_mkpath(address, S_IRUSR | S_IWUSR | S_IXUSR))
512 { 512 goto error_server;
513 free(address);
514 goto error_server;
515 }
516 513
517 new_mask = S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH; 514 new_mask = S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH;
518 515