Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d132750 commit f8a6f24Copy full SHA for f8a6f24
1 file changed
Modules/gcmodule.c
@@ -724,6 +724,9 @@ gc_get_objects(PyObject *self, PyObject *args)
724
if (!PyArg_ParseTuple(args, ":get_objects")) /* check no args */
725
return NULL;
726
result = PyList_New(0);
727
+ if (result == NULL) {
728
+ return NULL;
729
+ }
730
if (append_objects(result, &_PyGC_generation0) ||
731
append_objects(result, &generation1) ||
732
append_objects(result, &generation2)) {
0 commit comments