2011-02-28 Michael Snyder <msnyder@vmware.com>
* python/py-cmd.c (cmdpy_init): Fix memory leak.
This commit is contained in:
parent
c38eea1ac5
commit
e463f58791
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
2011-02-28 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* python/py-cmd.c (cmdpy_init): Fix memory leak.
|
||||
|
||||
* breakpoint.c (catch_syscall_completer): Free malloced list.
|
||||
|
||||
* jv-lang.c (java_primitive_type_from_name): Add missing break.
|
||||
|
|
|
@ -481,8 +481,11 @@ 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))
|
||||
{
|
||||
PyObject *ds_obj = PyObject_GetAttr (self, gdbpy_doc_cst);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue