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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits