Fix mutex memory leak in ph7_vm_release()
This commit is contained in:
parent
25a0e7d64e
commit
404a2cb402
2
api.c
2
api.c
|
@ -971,6 +971,8 @@ int ph7_vm_release(ph7_vm *pVm)
|
|||
#if defined(PH7_ENABLE_THREADS)
|
||||
/* Leave VM mutex */
|
||||
SyMutexLeave(sMPGlobal.pMutexMethods,pVm->pMutex); /* NO-OP if sMPGlobal.nThreadingLevel != PH7_THREAD_LEVEL_MULTI */
|
||||
/* free VM mutex */
|
||||
SyMutexRelease(sMPGlobal.pMutexMethods,pVm->pMutex);
|
||||
#endif
|
||||
if( rc == PH7_OK ){
|
||||
/* Unlink from the list of active VM */
|
||||
|
|
Loading…
Reference in New Issue