diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:20:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:20:48 +0000 |
commit | d81914324432f9b25708da13dce362428efa6b06 (patch) | |
tree | fec05c52b76e6bc90dc4bb26be0b494f612ae7eb /gdb/python/py-cmd.c | |
parent | 5d153bd188d03fcd90deb4d3a51e93f77e095894 (diff) | |
download | gdb-d81914324432f9b25708da13dce362428efa6b06.zip gdb-d81914324432f9b25708da13dce362428efa6b06.tar.gz gdb-d81914324432f9b25708da13dce362428efa6b06.tar.bz2 |
* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
Diffstat (limited to 'gdb/python/py-cmd.c')
-rw-r--r-- | gdb/python/py-cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index ca9e415..6516e1f 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -499,9 +499,12 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw) { xfree (cmd_name); xfree (pfx_name); + Py_DECREF (ds_obj); return -1; } } + + Py_XDECREF (ds_obj); } if (! docstring) docstring = xstrdup (_("This command is not documented.")); |