* python/py-inferior.c (gdbpy_selected_inferior): Don't incref.

This commit is contained in:
Tom Tromey 2013-06-18 18:43:27 +00:00
parent ac47519148
commit 2d57700bef
2 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2013-06-18 Tom Tromey <tromey@redhat.com>
* python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2013-06-18 Tom Tromey <tromey@redhat.com> 2013-06-18 Tom Tromey <tromey@redhat.com>
* python/python.c (finish_python_initialization): Decref * python/python.c (finish_python_initialization): Decref

View File

@ -773,12 +773,7 @@ py_free_inferior (struct inferior *inf, void *datum)
PyObject * PyObject *
gdbpy_selected_inferior (PyObject *self, PyObject *args) gdbpy_selected_inferior (PyObject *self, PyObject *args)
{ {
PyObject *inf_obj; return inferior_to_inferior_object (current_inferior ());
inf_obj = inferior_to_inferior_object (current_inferior ());
Py_INCREF (inf_obj);
return inf_obj;
} }
int int