Skip to content
Snippets Groups Projects
Commit b0eaf333 authored by Tom Vander Aa's avatar Tom Vander Aa
Browse files

Fix refcount assert

parent 5520785f
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -15,7 +15,7 @@ loom::PyObj::~PyObj() ...@@ -15,7 +15,7 @@ loom::PyObj::~PyObj()
PyGILState_STATE gstate; PyGILState_STATE gstate;
gstate = PyGILState_Ensure(); gstate = PyGILState_Ensure();
assert(obj->ob_refcnt == 1); assert(obj->ob_refcnt > 0);
Py_DecRef(obj); Py_DecRef(obj);
PyGILState_Release(gstate); PyGILState_Release(gstate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment