diff options
| author | Christian Heimes <christian@cheimes.de> | 2012-09-12 17:53:15 +0200 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2012-09-12 17:53:15 +0200 |
| commit | b3d4e81305da73a5eb48d093eed469d31bac7f17 (patch) | |
| tree | c2d8626f4d66e07c1e773bb664abd3404ef84016 /Python | |
| parent | c5ff015f0e089cee2025a70ee548638af6bdc110 (diff) | |
| parent | c99ce12e0b7abb2b188c0577598abac5d5e69cfe (diff) | |
| download | cpython-b3d4e81305da73a5eb48d093eed469d31bac7f17.tar.gz | |
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 d2bb889f4a..36f59ae51e 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; } |
