Skip to content

Commit 12600a6

Browse files
Fix PyCStgInfo_clone for pointer_type
1 parent 87a974b commit 12600a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_ctypes/stgdict.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ PyCStgInfo_clone(StgInfo *dst_info, StgInfo *src_info)
4141
Py_XINCREF(dst_info->restype);
4242
Py_XINCREF(dst_info->checker);
4343
Py_XINCREF(dst_info->module);
44+
Py_XINCREF(dst_info->pointer_type);
4445

4546
if (src_info->format) {
4647
dst_info->format = PyMem_Malloc(strlen(src_info->format) + 1);

0 commit comments

Comments
 (0)