* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.

This commit is contained in:
Tom Tromey 2013-05-20 20:20:48 +00:00
parent 5d153bd188
commit d819143244
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
2013-05-20 Tom Tromey <tromey@redhat.com> 2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-event.h (gdbpy_initialize_event_generic): Use * python/py-event.h (gdbpy_initialize_event_generic): Use

View file

@ -499,9 +499,12 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
{ {
xfree (cmd_name); xfree (cmd_name);
xfree (pfx_name); xfree (pfx_name);
Py_DECREF (ds_obj);
return -1; return -1;
} }
} }
Py_XDECREF (ds_obj);
} }
if (! docstring) if (! docstring)
docstring = xstrdup (_("This command is not documented.")); docstring = xstrdup (_("This command is not documented."));