Skip to content

Commit d15b422

Browse files
committed
pythongh-130382: Add missing reftracer call to ceval.c
1 parent ab11c09 commit d15b422

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The interpreter now correctly issues :c:data:`PyRefTracer_DESTROY` for
2+
deallocated objects.

Python/ceval.c

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
} \
8181
_Py_DECREF_STAT_INC(); \
8282
if (--op->ob_refcnt == 0) { \
83+
_PyReftracerTrack(op, PyRefTracer_DESTROY); \
8384
destructor dealloc = Py_TYPE(op)->tp_dealloc; \
8485
(*dealloc)(op); \
8586
} \

0 commit comments

Comments
 (0)