Skip to content

Commit 8525c93

Browse files
federicovalensoblurb-it[bot]ZeroIntensity
authored
gh-126238: Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (#126239)
* Replace Py_DECREF by Py_XDECREF Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <[email protected]>
1 parent 0b67ce9 commit 8525c93

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
@@ -901,7 +901,7 @@ _PyCompile_LookupArg(compiler *c, PyCodeObject *co, PyObject *name)
901901
c->u->u_metadata.u_name,
902902
co->co_name,
903903
freevars);
904-
Py_DECREF(freevars);
904+
Py_XDECREF(freevars);
905905
return ERROR;
906906
}
907907
return arg;

0 commit comments

Comments
 (0)