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

Fixed memory leak that occurs if agent is shutdown while spawned processes are still open.

This commit is contained in:
Bryan Roe
2020-12-03 18:20:11 -08:00
parent 0b835a6c82
commit fa4b217943
3 changed files with 26 additions and 1 deletions

View File

@@ -495,6 +495,16 @@ void ILibProcessPipe_Process_SoftKill(ILibProcessPipe_Process p)
#endif
}
void ILibProcessPipe_Process_HardKill(ILibProcessPipe_Process p)
{
if (!ILibMemory_CanaryOK(p)) { return; }
ILibProcessPipe_Process_SoftKill(p);
ILibProcessPipe_Process_Destroy(p);
}
ILibProcessPipe_Process ILibProcessPipe_Manager_SpawnProcessEx4(ILibProcessPipe_Manager pipeManager, char* target, char* const* parameters, ILibProcessPipe_SpawnTypes spawnType, void *sid, void *envvars, int extraMemorySize)
{
ILibProcessPipe_Process_Object* retVal = NULL;