Skip to content

Commit 5c4fad0

Browse files
committed
[ScriptInterpreterPython] Try to make the sanitizer bot green again.
Removing a use-after-free error. llvm-svn: 357006
1 parent 0dd67ed commit 5c4fad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ struct InitializePythonRAII {
322322
// priorities in the path, overriding PYTHONHOME and causing
323323
// problems/incompatibilities. In order to avoid confusion, always hardcode
324324
// the PythonHome to be right, as it's not going to change.
325-
char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
325+
static char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
326326
Py_SetPythonHome(path);
327327
#endif
328328
#endif

0 commit comments

Comments
 (0)