Merge pull request #297 from frida/fix/error-path

Fix error path so mutex is unlocked before returning
This commit is contained in:
Richard Henderson
2017-03-14 19:37:45 -07:00
committed by GitHub

View File

@@ -211,6 +211,7 @@ ffi_closure_alloc (size_t size, void **code)
table = ffi_trampoline_table_alloc ();
if (table == NULL)
{
pthread_mutex_unlock (&ffi_trampoline_lock);
free (closure);
return NULL;
}