diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-29 01:28:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 01:28:13 +0200 |
commit | 8852ad4208e34825f74e24945edb5bcf055d94fe (patch) | |
tree | 157f239ba46634301e136f4662b1646f7258357e /Python/import.c | |
parent | 5e8c691594d68925213d36296ce7c4b3e90bcb1d (diff) | |
download | cpython-git-8852ad4208e34825f74e24945edb5bcf055d94fe.tar.gz |
bpo-40429: PyFrame_GetCode() now returns a strong reference (GH-19773)
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 9142ebba40..8c94e0ec54 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1557,6 +1557,7 @@ remove_importlib_frames(PyThreadState *tstate) else { prev_link = (PyObject **) &traceback->tb_next; } + Py_DECREF(code); tb = next; } done: |