Commit a15333a3 authored by Simon Feltman's avatar Simon Feltman
Browse files

Add GIL safety to pyobject_copy for copying boxed PyObjects
parent 097c116d
......@@ -2386,8 +2386,11 @@ static gpointer
pyobject_copy(gpointer boxed)
PyObject *object = boxed;
PyGILState_STATE state;
state = pyglib_gil_state_ensure();
return object;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment