forked from enlightenment/efl
ecore_ipc: fix user after free in error handling.
Fixes Coverity 1366274.
This commit is contained in:
parent
6f3220ffc6
commit
400f3932d9
|
@ -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);
|
EINA_SAFETY_ON_NULL_GOTO(address, error_server);
|
||||||
|
|
||||||
if (!_ecore_ipc_local_mkpath(address, S_IRUSR | S_IWUSR | S_IXUSR))
|
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;
|
new_mask = S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue