1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 05:13:38 +00:00

1. Fixed minor memory leaks

2. Updated child_process.waitExit() to throw an exception if it's aborted
This commit is contained in:
Bryan Roe
2020-12-03 17:11:50 -08:00
parent 8119f87d6b
commit 0b835a6c82
3 changed files with 7 additions and 2 deletions

View File

@@ -854,9 +854,9 @@ __EXPORT_TYPE char* ILibSimpleDataStore_GetHashEx(ILibSimpleDataStore dataStore,
memcpy_s(tmpkey, ILibMemory_Size(tmpkey), key, keyLen);
((uint32_t*)(tmpkey + keyLen))[0] = crc32c(0, (unsigned char*)key, (uint32_t)keyLen); // no dataloss, capped to INT32_MAX
centry = (ILibSimpleDataStore_CacheEntry*)ILibHashtable_Get(root->cacheTable, NULL, tmpkey, (int)ILibMemory_Size(tmpkey));
ILibMemory_Free(tmpkey);
if (centry != NULL)
{
ILibMemory_Free(tmpkey);
return(centry->valueHash);
}
}