From: Christian Heimes Date: Wed, 12 Sep 2012 15:52:46 +0000 (+0200) Subject: Partly revert ad3824a90261 and add comment about reference ownership X-Git-Tag: v3.2.4rc1~534 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1526582df686a66e15c1944aed13c2ea6b922882;p=thirdparty%2FPython%2Fcpython.git Partly revert ad3824a90261 and add comment about reference ownership --- diff --git a/Python/symtable.c b/Python/symtable.c index 00b342761f0c..992b5aeb585b 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -37,7 +37,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); @@ -83,7 +83,6 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block, return ste; fail: - Py_XDECREF(k); Py_XDECREF(ste); return NULL; }