Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix refcounting for _CTYPES_DEBUG_KEEP builds
  • Loading branch information
encukou committed Dec 6, 2024
commit 50c82bed90acfb44043338a567eda51b47cec65f
1 change: 1 addition & 0 deletions Modules/_ctypes/cfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ Py_ssize_t NUM_BITS(Py_ssize_t bitsize) {
if (res == NULL) { \
return NULL; \
} \
Py_DECREF(res); \
CTYPE field; \
memcpy(&field, ptr, sizeof(field)); \
field = PY_SWAPFUNC(field); \
Expand Down