Skip to content
Snippets Groups Projects
Commit 634dde0a authored by rswindell's avatar rswindell
Browse files

Fixed resource (thread and process handle) leak in BBSConfigureMenuItemClick.

parent a03f3a83
Branches
Tags
No related merge requests found
......@@ -1008,6 +1008,9 @@ void __fastcall TMainForm::BBSConfigureMenuItemClick(TObject *Sender)
&startup_info, // pointer to STARTUPINFO
&process_info // pointer to PROCESS_INFORMATION
);
// Resource leak if you don't close these:
CloseHandle(process_info.hThread);
CloseHandle(process_info.hProcess);
}
//---------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment