mirror of https://github.com/python/cpython
bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)
This commit is contained in:
parent
44afdbd5af
commit
5a9e423473
|
@ -406,7 +406,7 @@ PyObject *
|
|||
_Py_get_%%NAME%%_toplevel(void)
|
||||
{
|
||||
%%NAME%%_do_patchups();
|
||||
return (PyObject *) &%%NAME%%_toplevel;
|
||||
return Py_NewRef((PyObject *) &%%NAME%%_toplevel);
|
||||
}
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue