Skip to content

Commit 2f39370

Browse files
federicovalensoblurb-it[bot]ZeroIntensity
authored
[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 8525c93) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <[email protected]>
1 parent fc01844 commit 2f39370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ compiler_make_closure(struct compiler *c, location loc,
18351835
c->u->u_metadata.u_name,
18361836
co->co_name,
18371837
freevars);
1838-
Py_DECREF(freevars);
1838+
Py_XDECREF(freevars);
18391839
return ERROR;
18401840
}
18411841
ADDOP_I(c, loc, LOAD_CLOSURE, arg);

0 commit comments

Comments
 (0)