Commit 08cdce7b authored by Stefan Behnel's avatar Stefan Behnel

add missing gotrefs() for PyPy code (currently irrelevant as refnanny does not work in PyPy)

parent 0b880a17
......@@ -5164,6 +5164,7 @@ class SequenceNode(ExprNode):
code.putln("%s = PySequence_ITEM(sequence, %d); %s" % (
item.result(), i,
code.error_goto_if_null(item.result(), self.pos)))
code.put_gotref(item.result())
else:
code.putln("Py_ssize_t i;")
code.putln("PyObject** temps[%s] = {%s};" % (
......@@ -5172,6 +5173,7 @@ class SequenceNode(ExprNode):
code.putln("for (i=0; i < %s; i++) {" % len(self.unpacked_items))
code.putln("PyObject* item = PySequence_ITEM(sequence, i); %s" % (
code.error_goto_if_null('item', self.pos)))
code.put_gotref('item')
code.putln("*(temps[i]) = item;")
code.putln("}")
......
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