forked from enlightenment/efl
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:
parent
fd48be23c2
commit
807c8e7357
|
@ -846,10 +846,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;
|
||||
}
|
||||
|
||||
memset(n, 0, sizeof(Eina_File));
|
||||
n->filename = filename;
|
||||
|
|
Loading…
Reference in New Issue