mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-13 23:29:03 +00:00
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
PR python/13310 * python/py-param.c (call_doc_function): Correctly deference on function exit.
This commit is contained in:
parent
f11632056d
commit
8432bc4103
@ -1,3 +1,10 @@
|
||||
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
|
||||
|
||||
PR python/13310
|
||||
|
||||
* python/py-param.c (call_doc_function): Correctly deference on
|
||||
function exit.
|
||||
|
||||
2011-10-21 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-tasks.c (print_ada_task_info): Fix computation of
|
||||
|
@ -331,6 +331,7 @@ call_doc_function (PyObject *obj, PyObject *method, PyObject *arg)
|
||||
if (gdbpy_is_string (result))
|
||||
{
|
||||
data = python_string_to_host_string (result);
|
||||
Py_DECREF (result);
|
||||
if (! data)
|
||||
return NULL;
|
||||
}
|
||||
@ -338,6 +339,7 @@ call_doc_function (PyObject *obj, PyObject *method, PyObject *arg)
|
||||
{
|
||||
PyErr_SetString (PyExc_RuntimeError,
|
||||
_("Parameter must return a string value."));
|
||||
Py_DECREF (result);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user