aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-type.c
diff options
context:
space:
mode:
authorPaul Koning <pkoning@equallogic.com>2011-09-15 18:33:15 +0000
committerPaul Koning <pkoning@equallogic.com>2011-09-15 18:33:15 +0000
commit5af65ec072edf782b67169fd3ea1b91b8255d30f (patch)
treef85ac04dc8ea2ca2d5f9d9c35b51863663c7c936 /gdb/python/py-type.c
parent883640a804647cb6c54766eca0a4e40ccf808386 (diff)
downloadgdb-5af65ec072edf782b67169fd3ea1b91b8255d30f.zip
gdb-5af65ec072edf782b67169fd3ea1b91b8255d30f.tar.gz
gdb-5af65ec072edf782b67169fd3ea1b91b8255d30f.tar.bz2
* python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
count of item appended to list. * python/py-type.c (typy_fields): Likewise.
Diffstat (limited to 'gdb/python/py-type.c')
-rw-r--r--gdb/python/py-type.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 335342e..29b2629 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -246,6 +246,7 @@ typy_fields (PyObject *self, PyObject *args)
Py_DECREF (result);
return NULL;
}
+ Py_DECREF (dict);
}
return result;