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 7184366 commit 588544dCopy full SHA for 588544d
1 file changed
Modules/_ctypes/_ctypes.c
@@ -2344,7 +2344,11 @@ PyCData_GetContainer(CDataObject *self)
2344
static PyObject *
2345
GetKeepedObjects(CDataObject *target)
2346
{
2347
- return PyCData_GetContainer(target)->b_objects;
+ CDataObject *container;
2348
+ container = PyCData_GetContainer(target);
2349
+ if (container == NULL)
2350
+ return NULL;
2351
+ return container->b_objects;
2352
}
2353
2354
0 commit comments