mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
* python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
count of item appended to list. * python/py-type.c (typy_fields): Likewise.
This commit is contained in:
@ -683,14 +683,12 @@ gdbpy_string_to_argv (PyObject *self, PyObject *args)
|
||||
if (argp == NULL
|
||||
|| PyList_Append (py_argv, argp) < 0)
|
||||
{
|
||||
if (argp != NULL)
|
||||
{
|
||||
Py_DECREF (argp);
|
||||
}
|
||||
Py_XDECREF (argp);
|
||||
Py_DECREF (py_argv);
|
||||
freeargv (c_argv);
|
||||
return NULL;
|
||||
}
|
||||
Py_DECREF (argp);
|
||||
}
|
||||
|
||||
freeargv (c_argv);
|
||||
|
Reference in New Issue
Block a user