Skip to content

Commit e70711a

Browse files
committed
Fix decrefs
1 parent 426b5b3 commit e70711a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5054,7 +5054,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
50545054
goto error;
50555055
}
50565056
STACK_SHRINK(1);
5057-
Py_DECREF(Py_None);
5057+
_Py_DECREF_NO_DEALLOC(Py_None);
50585058
NOTRACE_DISPATCH();
50595059
}
50605060

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ setup_init_cleanup_func(void) {
20882088
cleanup:
20892089
PyErr_Clear();
20902090
Py_XDECREF(codeobj);
2091-
Py_DECREF(globals);
2091+
Py_XDECREF(globals);
20922092
Py_XDECREF(name);
20932093
Py_XDECREF(code);
20942094
Py_XDECREF(lines);

0 commit comments

Comments
 (0)