[ScriptInterpreterPython] Try to make the sanitizer bot green again.
authorDavide Italiano <davide@freebsd.org>
Tue, 26 Mar 2019 16:43:58 +0000 (16:43 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 26 Mar 2019 16:43:58 +0000 (16:43 +0000)
Removing a use-after-free error.

llvm-svn: 357006

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

index d6c49c2810788dfb151bf2142ef6d08cea36c96b..e3bb320c6e55779e79521a898d74906243030146 100644 (file)
@@ -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