* 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:
parent
883640a804
commit
5af65ec072
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-09-15 Paul Koning <paul_koning@dell.com>
|
||||||
|
|
||||||
|
* python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
|
||||||
|
count of item appended to list.
|
||||||
|
* python/py-type.c (typy_fields): Likewise.
|
||||||
|
|
||||||
2011-09-15 Paul Koning <paul_koning@dell.com>
|
2011-09-15 Paul Koning <paul_koning@dell.com>
|
||||||
|
|
||||||
* MAINTAINERS (Write After Approval): Add myself to the list.
|
* MAINTAINERS (Write After Approval): Add myself to the list.
|
||||||
|
|
|
@ -683,14 +683,12 @@ gdbpy_string_to_argv (PyObject *self, PyObject *args)
|
||||||
if (argp == NULL
|
if (argp == NULL
|
||||||
|| PyList_Append (py_argv, argp) < 0)
|
|| PyList_Append (py_argv, argp) < 0)
|
||||||
{
|
{
|
||||||
if (argp != NULL)
|
Py_XDECREF (argp);
|
||||||
{
|
|
||||||
Py_DECREF (argp);
|
|
||||||
}
|
|
||||||
Py_DECREF (py_argv);
|
Py_DECREF (py_argv);
|
||||||
freeargv (c_argv);
|
freeargv (c_argv);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Py_DECREF (argp);
|
||||||
}
|
}
|
||||||
|
|
||||||
freeargv (c_argv);
|
freeargv (c_argv);
|
||||||
|
|
|
@ -246,6 +246,7 @@ typy_fields (PyObject *self, PyObject *args)
|
||||||
Py_DECREF (result);
|
Py_DECREF (result);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Py_DECREF (dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue