commit | 65a0141e146aba6e2ae2b82d39d016ab03b8c7e2 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Wed Sep 12 17:52:46 2012 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Wed Sep 12 17:52:46 2012 +0200 |
tree | 9b92a49bfb746227fe16225eb6ccc979ccef0815 | |
parent | 9f2cc6c3903d588466d2dbfe2e6d25656e8501d4 [diff] |
Partly revert ad3824a90261 and add comment about reference ownership
diff --git a/Python/symtable.c b/Python/symtable.c index f0f1d4d..7611b3d 100644 --- a/Python/symtable.c +++ b/Python/symtable.c
@@ -31,7 +31,7 @@ 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 @@ return ste; fail: - Py_XDECREF(k); Py_XDECREF(ste); return NULL; }