mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 15:53:55 +00:00
Fixed edge case bug where childprocess.waitExit() called during promise.waitExit() would cause event loop to prematurely exit.
This commit is contained in:
@@ -1610,7 +1610,7 @@ void ILibDuktape_ScriptContainer_Engine_free(void *udata, void *ptr)
|
||||
{
|
||||
size_t sz = ptr == NULL ? 0 : ILibMemory_Size(ptr);
|
||||
|
||||
if (ptr != NULL)
|
||||
if (ptr != NULL && ILibMemory_CanaryOK(ptr))
|
||||
{
|
||||
ILibDuktape_ScriptContainer_TotalAllocations -= ILibMemory_Size(ptr);
|
||||
ILibMemory_SecureZero(ptr, sz);
|
||||
|
||||
Reference in New Issue
Block a user