diff --git a/Python/compile.c b/Python/compile.c index 3dae4c85d0c..3f12e419aa1 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4477,6 +4477,7 @@ symtable_update_cur(struct symtable *st) Py_DECREF(d); return -1; } + Py_DECREF(d); if (st->st_cur_type == TYPE_FUNCTION) { if ((l = PyList_New(0)) == NULL) return -1;