mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-04-02 12:19:04 +00:00
Fixed handle leak
This commit is contained in:
parent
37bf8554fc
commit
8894da4f93
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ static DWORD WINAPI minidump_and_crash_thread(LPVOID param)
|
|||
|
||||
void minidump_and_crash(size_t delay)
|
||||
{
|
||||
CreateThread(nullptr, 0, minidump_and_crash_thread, reinterpret_cast<LPVOID>(delay), 0, nullptr);
|
||||
HANDLE h = CreateThread(nullptr, 0, minidump_and_crash_thread, reinterpret_cast<LPVOID>(delay), 0, nullptr);
|
||||
CloseHandle(h);
|
||||
}
|
||||
|
||||
FORCEINLINE static void add_alocation(void* p, size_t size)
|
||||
|
|
Loading…
Reference in a new issue