Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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 lock.
  • Loading branch information
ZeroIntensity committed Jan 6, 2025
commit ff34cc2c49e26e18b31c7f4c0a934b33214f9c52
4 changes: 2 additions & 2 deletions Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3361,9 +3361,9 @@ _PyCData_set(ctypes_state *st,
((PyTypeObject *)type)->tp_name);
return NULL;
}
LOCK_PTR(dst);
LOCK_PTR(src);
*(void **)ptr = src->b_ptr;
UNLOCK_PTR(dst);
UNLOCK_PTR(src);

keep = GetKeepedObjects(src);
if (keep == NULL)
Expand Down