Skip to content

Commit b05a4e5

Browse files
Apply suggestion from @sunmy2019
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
1 parent 37f4b63 commit b05a4e5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,6 @@ PyCSimpleType_init(PyObject *self, PyObject *args, PyObject *kwds)
23882388
goto error;
23892389
}
23902390
if (set_stginfo_ffi_type_pointer(stginfo, fmt)) {
2391-
PyErr_NoMemory();
23922391
goto error;
23932392
}
23942393
stginfo->align = fmt->pffi_type->alignment;

0 commit comments

Comments
 (0)