mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[3.13] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) (#126475)
[3.13] gh-126238: Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (GH-126239)
* Replace Py_DECREF by Py_XDECREF
(cherry picked from commit 8525c9375f
)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
ba86632f7e
commit
8059351051
1 changed files with 1 additions and 1 deletions
|
@ -1815,7 +1815,7 @@ compiler_make_closure(struct compiler *c, location loc,
|
||||||
c->u->u_metadata.u_name,
|
c->u->u_metadata.u_name,
|
||||||
co->co_name,
|
co->co_name,
|
||||||
freevars);
|
freevars);
|
||||||
Py_DECREF(freevars);
|
Py_XDECREF(freevars);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
ADDOP_I(c, loc, LOAD_CLOSURE, arg);
|
ADDOP_I(c, loc, LOAD_CLOSURE, arg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue