* python/python.c (finish_python_initialization): Decref
'pythondir' on failure path as well.
This commit is contained in:
parent
6de7c271e1
commit
ac47519148
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue