diff options
-rw-r--r-- | Python/symtable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 74d2b82..33e1a57 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -15,6 +15,7 @@ PySymtableEntry_New(struct symtable *st, char *name, int type, int lineno) goto fail; v = PyDict_GetItem(st->st_symbols, k); if (v) /* XXX could check that name, type, lineno match */ { + Py_DECREF(k); Py_INCREF(v); return v; } |