* python/python.c (finish_python_initialization): Decref

'pythondir' on failure path as well.
This commit is contained in:
Tom Tromey 2013-06-18 18:42:09 +00:00
parent 6de7c271e1
commit ac47519148
2 changed files with 6 additions and 2 deletions

View file

@ -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:

View file

@ -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;