ecore_ipc: fix user after free in error handling.

Fixes Coverity 1366274.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-11-23 22:15:25 -02:00
parent 6f3220ffc6
commit 400f3932d9
1 changed files with 1 additions and 4 deletions

View File

@ -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;