* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
This commit is contained in:
parent
5d153bd188
commit
d819143244
2 changed files with 7 additions and 0 deletions
|
@ -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."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue