Skip to content

Commit 6ea9da8

Browse files
fixup! [lldb][windows] fix a use before allocation crash
1 parent c23a37e commit 6ea9da8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Host/windows/ProcessLauncherWindows.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info,
8787
error.Clear();
8888

8989
std::string executable;
90-
std::vector<HANDLE> inherited_handles;
9190
STARTUPINFOEXW startupinfoex = {};
9291
STARTUPINFOW &startupinfo = startupinfoex.StartupInfo;
9392
PROCESS_INFORMATION pi = {};
@@ -131,7 +130,7 @@ ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info,
131130
error = Status(inherited_handles_or_err.getError());
132131
return HostProcess();
133132
}
134-
inherited_handles = *inherited_handles_or_err;
133+
std::vector<HANDLE> inherited_handles = *inherited_handles_or_err;
135134

136135
const char *hide_console_var =
137136
getenv("LLDB_LAUNCH_INFERIORS_WITHOUT_CONSOLE");

0 commit comments

Comments
 (0)