mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed handle leak in BfpProcess_GetById
This commit is contained in:
parent
c24fb8a26f
commit
ff2affb733
2 changed files with 2 additions and 0 deletions
|
@ -1301,6 +1301,7 @@ BFP_EXPORT BfpProcess* BFP_CALLTYPE BfpProcess_GetById(const char* machineName,
|
|||
OUTRESULT(BfpProcessResult_NotFound);
|
||||
return NULL;
|
||||
}
|
||||
::CloseHandle(hProc);
|
||||
|
||||
BfpProcess* process = new BfpProcess();
|
||||
process->mProcessId = processId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue