* python/py-cmd.c (gdbpy_string_to_argv): Decrement reference

count of item appended to list.
* python/py-type.c (typy_fields): Likewise.
This commit is contained in:
Paul Koning 2011-09-15 18:33:15 +00:00
parent 883640a804
commit 5af65ec072
3 changed files with 9 additions and 4 deletions

View file

@ -246,6 +246,7 @@ typy_fields (PyObject *self, PyObject *args)
Py_DECREF (result);
return NULL;
}
Py_DECREF (dict);
}
return result;