Skip to content
Prev Previous commit
Next Next commit
Fix refcnt check
  • Loading branch information
gaogaotiantian committed May 30, 2024
commit 10ad82ce8d4d4427b37b693ad6f51088b26e7a1c
2 changes: 1 addition & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ PyEval_GetLocals(void)
}

assert(PyMapping_Check(locals));
Comment thread
ncoghlan marked this conversation as resolved.
assert(locals->ob_refcnt > 1);
assert(Py_REFCNT(locals) > 1);
Py_DECREF(locals);

return locals;
Expand Down