eina file - don't double unlock a lock

thanks to coverity - found this double unlock path in case of error.

fix CID 1403899
This commit is contained in:
Carsten Haitzler 2019-08-10 23:27:24 +01:00
parent 64b18d5152
commit 8066c82b65
1 changed files with 1 additions and 4 deletions

View File

@ -832,10 +832,7 @@ eina_file_open(const char *path, Eina_Bool shared)
{
n = malloc(sizeof(Eina_File));
if (!n)
{
eina_lock_release(&_eina_file_lock_cache);
goto on_error;
}
goto on_error;
memset(n, 0, sizeof(Eina_File));
n->filename = filename;