Fix mutex memory leak in ph7_vm_release()

这个提交包含在:
Rafal Kupiec 2018-07-12 13:43:21 +02:00
父节点 25a0e7d64e
当前提交 404a2cb402

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 */