summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 46815c2..e6f7167 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -630,6 +630,7 @@ new_identifier(const char *n, struct compiling *c)
PyObject *args[2] = {form, id};
id2 = _PyObject_FastCall(c->c_normalize, args, 2);
Py_DECREF(id);
+ Py_DECREF(form);
if (!id2)
return NULL;
if (!PyUnicode_Check(id2)) {