Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be711a0

Browse files
[lldb][windows] remove unneeded DeleteProcThreadAttributeList call (#180579)
Remove an unneeded call to `DeleteProcThreadAttributeList`, which is already done in the `ProcThreadAttributeList` destructor.
1 parent cd47ae9 commit be711a0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lldb/source/Host/windows/ProcessLauncherWindows.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info,
146146
}
147147
ProcThreadAttributeList attributelist = std::move(*attributelist_or_err);
148148

149-
llvm::scope_exit delete_attributelist(
150-
[&] { DeleteProcThreadAttributeList(startupinfoex.lpAttributeList); });
151-
152149
std::vector<HANDLE> inherited_handles;
153150
if (use_pty) {
154151
if (auto err = attributelist.SetupPseudoConsole(hPC)) {

0 commit comments

Comments
 (0)