Commit 65a0141e authored by Christian Heimes's avatar Christian Heimes

Partly revert ad3824a90261 and add comment about reference ownership

parent 9f2cc6c3
......@@ -31,7 +31,7 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
if (ste == NULL)
goto fail;
ste->ste_table = st;
ste->ste_id = k;
ste->ste_id = k; /* ste owns reference to k */
ste->ste_name = name;
Py_INCREF(name);
......@@ -75,7 +75,6 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
return ste;
fail:
Py_XDECREF(k);
Py_XDECREF(ste);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment