2011-03-11 Michael Snyder <msnyder@vmware.com>
* python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
This commit is contained in:
parent
ed16fd1b1c
commit
f3be5b6431
2 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2011-03-11 Michael Snyder <msnyder@vmware.com>
|
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.
|
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
|
||||||
|
|
||||||
* top.c (set_verbose): Assert showcmd was found.
|
* top.c (set_verbose): Assert showcmd was found.
|
||||||
|
|
|
@ -457,6 +457,10 @@ bppy_set_condition (PyObject *self, PyObject *newvalue, void *closure)
|
||||||
{
|
{
|
||||||
set_breakpoint_condition (self_bp->bp, exp, 0);
|
set_breakpoint_condition (self_bp->bp, exp, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (newvalue != Py_None)
|
||||||
|
xfree (exp);
|
||||||
|
|
||||||
GDB_PY_SET_HANDLE_EXCEPTION (except);
|
GDB_PY_SET_HANDLE_EXCEPTION (except);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue