From 5a9e423473bf2c4eb32a0982e8d73420875db1da Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Fri, 28 Jan 2022 18:11:13 +0530 Subject: bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987) --- Tools/scripts/deepfreeze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/scripts/deepfreeze.py b/Tools/scripts/deepfreeze.py index db44ba8..080980f 100644 --- a/Tools/scripts/deepfreeze.py +++ b/Tools/scripts/deepfreeze.py @@ -406,7 +406,7 @@ PyObject * _Py_get_%%NAME%%_toplevel(void) { %%NAME%%_do_patchups(); - return (PyObject *) &%%NAME%%_toplevel; + return Py_NewRef((PyObject *) &%%NAME%%_toplevel); } """ -- cgit v0.12