================
@@ -135,15 +144,15 @@ ProcessLauncherWindows::LaunchProcess(const 
ProcessLaunchInfo &launch_info,
     error = attributelist_or_err.getError();
     return HostProcess();
   }
+  ProcThreadAttributeList attributelist = std::move(*attributelist_or_err);
+
   llvm::scope_exit delete_attributelist(
       [&] { DeleteProcThreadAttributeList(startupinfoex.lpAttributeList); });
----------------
Nerixyz wrote:

Do we delete the attribute list twice? Here and in the destructor of 
`ProcThreadAttributeList` which holds the same pointer.

https://github.com/llvm/llvm-project/pull/180565
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to