diff options
-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); } """ |