mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
* python/python.c (finish_python_initialization): Decref
'pythondir' on failure path as well.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2013-06-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/python.c (finish_python_initialization): Decref
|
||||
'pythondir' on failure path as well.
|
||||
|
||||
2013-06-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR symtab/15391:
|
||||
|
@ -1771,10 +1771,9 @@ finish_python_initialization (void)
|
||||
goto fail;
|
||||
|
||||
err = PyList_Insert (sys_path, 0, pythondir);
|
||||
Py_DECREF (pythondir);
|
||||
if (err)
|
||||
goto fail;
|
||||
|
||||
Py_DECREF (pythondir);
|
||||
}
|
||||
else
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user