mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-26 04:08:13 +08:00
* python/py-inferior.c (infpy_read_memory): Don't call
PyErr_SetString if PyObject_New fails. * python/py-frame.c (frame_info_to_frame_object): Don't call PyErr_SetString if PyObject_New fails.
This commit is contained in:
@ -445,8 +445,6 @@ infpy_read_memory (PyObject *self, PyObject *args, PyObject *kw)
|
||||
if (membuf_obj == NULL)
|
||||
{
|
||||
xfree (buffer);
|
||||
PyErr_SetString (PyExc_MemoryError,
|
||||
_("Could not allocate memory buffer object."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user