mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
2011-02-28 Michael Snyder <msnyder@vmware.com>
* python/py-cmd.c (cmdpy_init): Fix memory leak.
This commit is contained in:
@ -481,7 +481,10 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
|
||||
pfx_name[out] = '\0';
|
||||
}
|
||||
else if (cmp < 0)
|
||||
{
|
||||
xfree (cmd_name);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (PyObject_HasAttr (self, gdbpy_doc_cst))
|
||||
{
|
||||
|
Reference in New Issue
Block a user