[Lldb-commits] [lldb] r357006 - [ScriptInterpreterPython] Try to make the sanitizer bot green again.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 26 09:43:58 PDT 2019
Author: davide
Date: Tue Mar 26 09:43:58 2019
New Revision: 357006
URL: http://llvm.org/viewvc/llvm-project?rev=357006&view=rev
Log:
[ScriptInterpreterPython] Try to make the sanitizer bot green again.
Removing a use-after-free error.
Modified:
lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp?rev=357006&r1=357005&r2=357006&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp Tue Mar 26 09:43:58 2019
@@ -322,7 +322,7 @@ private:
// priorities in the path, overriding PYTHONHOME and causing
// problems/incompatibilities. In order to avoid confusion, always hardcode
// the PythonHome to be right, as it's not going to change.
- char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
+ static char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
Py_SetPythonHome(path);
#endif
#endif
More information about the lldb-commits
mailing list