Skip to content

Commit 8059351

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ compiler_make_closure(struct compiler *c, location loc,
18151815
c->u->u_metadata.u_name,
18161816
co->co_name,
18171817
freevars);
1818-
Py_DECREF(freevars);
1818+
Py_XDECREF(freevars);
18191819
return ERROR;
18201820
}
18211821
ADDOP_I(c, loc, LOAD_CLOSURE, arg);

0 commit comments

Comments
 (0)