https://github.com/python/cpython/commit/8059351051e807620d0822f949eef8802d754c93 commit: 8059351051e807620d0822f949eef8802d754c93 branch: 3.13 author: Valery Fedorenko <[email protected]> committer: sobolevn <[email protected]> date: 2024-11-06T08:10:04Z summary:
[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 8525c9375f25e6ec0c0b5dfcab464703f6e78082) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <[email protected]> files: M Python/compile.c diff --git a/Python/compile.c b/Python/compile.c index bf7e95e1cd73a3..c3cffd3920a028 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1815,7 +1815,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); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
