diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-18 18:43:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-18 18:43:27 +0000 |
commit | 2d57700bef17e9d26002db304aa964a7c80080e9 (patch) | |
tree | b10c462cad4e0562696662bcafe1d699cd42a61f /gdb/python | |
parent | ac47519148406c07c968732b83bdf7f7b272d15c (diff) | |
download | gdb-2d57700bef17e9d26002db304aa964a7c80080e9.zip gdb-2d57700bef17e9d26002db304aa964a7c80080e9.tar.gz gdb-2d57700bef17e9d26002db304aa964a7c80080e9.tar.bz2 |
* python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-inferior.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index a93677d..26ee004 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -773,12 +773,7 @@ py_free_inferior (struct inferior *inf, void *datum) PyObject * gdbpy_selected_inferior (PyObject *self, PyObject *args) { - PyObject *inf_obj; - - inf_obj = inferior_to_inferior_object (current_inferior ()); - Py_INCREF (inf_obj); - - return inf_obj; + return inferior_to_inferior_object (current_inferior ()); } int |