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
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user