mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 15:38:45 +08:00
* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
This commit is contained in:
@ -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
|
||||||
|
@ -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."));
|
||||||
|
Reference in New Issue
Block a user