]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) (GH-19698)
authorVictor Stinner <vstinner@python.org>
Fri, 24 Apr 2020 01:07:20 +0000 (03:07 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 01:07:20 +0000 (03:07 +0200)
commitd9df63deab78f70061a5a24c1f92e6d389fc45f7
tree23165c6b9065fe792c323dadacd07b126372fb25
parent3340b2a61b458e7087c8c5fea063b1b45e1a4a07
bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) (GH-19698)

If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate->frame is now
reset properly.

(cherry picked from commit 25104949a5a60ff86c10691e184ce2ecb500159b)
Python/ceval.c