2011-03-11 Michael Snyder <msnyder@vmware.com>

* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
This commit is contained in:
Michael Snyder 2011-03-11 22:01:30 +00:00
parent ed16fd1b1c
commit f3be5b6431
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-03-11 Michael Snyder <msnyder@vmware.com>
* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
* top.c (set_verbose): Assert showcmd was found.

View File

@ -457,6 +457,10 @@ bppy_set_condition (PyObject *self, PyObject *newvalue, void *closure)
{
set_breakpoint_condition (self_bp->bp, exp, 0);
}
if (newvalue != Py_None)
xfree (exp);
GDB_PY_SET_HANDLE_EXCEPTION (except);
return 0;