diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-01-28 12:41:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 12:41:13 (GMT) |
commit | 5a9e423473bf2c4eb32a0982e8d73420875db1da (patch) | |
tree | cc1c3eb34b7718e045718230a399db6b3dd757cf /Tools/scripts | |
parent | 44afdbd5af4503e376148e9404b9c7a4f595b1fe (diff) | |
download | cpython-5a9e423473bf2c4eb32a0982e8d73420875db1da.zip cpython-5a9e423473bf2c4eb32a0982e8d73420875db1da.tar.gz cpython-5a9e423473bf2c4eb32a0982e8d73420875db1da.tar.bz2 |
bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)
Diffstat (limited to 'Tools/scripts')
-rw-r--r-- | Tools/scripts/deepfreeze.py | 2 |
1 files changed, 1 insertions, 1 deletions
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); } """ |