mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +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>
|
2013-06-18 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR symtab/15391:
|
PR symtab/15391:
|
||||||
|
@ -1771,10 +1771,9 @@ finish_python_initialization (void)
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
err = PyList_Insert (sys_path, 0, pythondir);
|
err = PyList_Insert (sys_path, 0, pythondir);
|
||||||
|
Py_DECREF (pythondir);
|
||||||
if (err)
|
if (err)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
Py_DECREF (pythondir);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Reference in New Issue
Block a user