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);