diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-12 15:53:15 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-12 15:53:15 (GMT) |
commit | 9c5b521c715d7f369413d054b68edbca8eef41e4 (patch) | |
tree | 605df3f556ee55e85ca52d5601e88d3cc0f707dc /Python | |
parent | 7ae251a0256686a0583a371a0c6421b6fd8366bf (diff) | |
parent | 1526582df686a66e15c1944aed13c2ea6b922882 (diff) | |
download | cpython-9c5b521c715d7f369413d054b68edbca8eef41e4.zip cpython-9c5b521c715d7f369413d054b68edbca8eef41e4.tar.gz cpython-9c5b521c715d7f369413d054b68edbca8eef41e4.tar.bz2 |
Partly revert ad3824a90261 and add comment about reference ownership
Diffstat (limited to 'Python')
-rw-r--r-- | Python/symtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index d2bb889..36f59ae 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -33,7 +33,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); @@ -79,7 +79,6 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block, return ste; fail: - Py_XDECREF(k); Py_XDECREF(ste); return NULL; } |