diff options
| author | Valery Fedorenko <federicovalenso@gmail.com> | 2024-11-06 07:56:12 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 07:56:12 (GMT) |
| commit | 2f39370f4aee651b9dfd882f5d739eeea52f05ce (patch) | |
| tree | 28316482ea1f0db73f4faf6811eb06796a4b677e /Python | |
| parent | fc01844019f63748e8334adca57a11577cc00a6d (diff) | |
| download | cpython-2f39370f4aee651b9dfd882f5d739eeea52f05ce.zip cpython-2f39370f4aee651b9dfd882f5d739eeea52f05ce.tar.gz cpython-2f39370f4aee651b9dfd882f5d739eeea52f05ce.tar.bz2 | |
[3.12] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) (#126474)
[3.12] gh-126238: Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (GH-126239)
* Replace Py_DECREF by Py_XDECREF
(cherry picked from commit 8525c9375f25e6ec0c0b5dfcab464703f6e78082)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6050b72..56fdbfa 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1835,7 +1835,7 @@ compiler_make_closure(struct compiler *c, location loc, c->u->u_metadata.u_name, co->co_name, freevars); - Py_DECREF(freevars); + Py_XDECREF(freevars); return ERROR; } ADDOP_I(c, loc, LOAD_CLOSURE, arg); |
