bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)

This commit is contained in:
Kumar Aditya 2022-01-28 18:11:13 +05:30 committed by GitHub
parent 44afdbd5af
commit 5a9e423473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ PyObject *
_Py_get_%%NAME%%_toplevel(void)
{
%%NAME%%_do_patchups();
return (PyObject *) &%%NAME%%_toplevel;
return Py_NewRef((PyObject *) &%%NAME%%_toplevel);
}
"""