Skip to content

Commit e80c657

Browse files
committed
object.c: recursion depth leak in PyObject_Print
1 parent 985216c commit e80c657

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix recursion depth leak in :c:func:`PyObject_Print

Objects/object.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
688688
ret = -1;
689689
}
690690
}
691+
692+
_Py_LeaveRecursiveCall();
691693
return ret;
692694
}
693695

0 commit comments

Comments
 (0)