mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)
This commit is contained in:
parent
44afdbd5af
commit
5a9e423473
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ PyObject *
|
|||
_Py_get_%%NAME%%_toplevel(void)
|
||||
{
|
||||
%%NAME%%_do_patchups();
|
||||
return (PyObject *) &%%NAME%%_toplevel;
|
||||
return Py_NewRef((PyObject *) &%%NAME%%_toplevel);
|
||||
}
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue