[RFA] py-inferior.c, check return value of PyList_Append
Tom Tromey
tromey@redhat.com
Wed Mar 2 20:27:00 GMT 2011
>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:
Michael> Just making this up as I go, here, need a review.
Michael> 2011-03-02 Michael Snyder <msnyder@vmware.com>
Michael> * py-inferior.c (inferior_to_inferior_object): Check return
Should be build_inferior_list, not inferior_to_inferior_object.
This code is kind of bogus. I agree with your change, but then the
caller needs a change as well. It should do something like:
if (iterate_over_inferiors (...))
{
Py_DECREF (list);
return NULL;
}
Tom
More information about the Gdb-patches
mailing list