Commit 70ffddf8 authored by Michael W. Hudson's avatar Michael W. Hudson

Guido pointed out that I was missing a couple decrefs.

parent 594bc80c
......@@ -233,6 +233,7 @@ structseq_reduce(PyStructSequence* self)
{
PyObject* tup;
PyObject* dict;
PyObject* result;
long n_fields, n_visible_fields;
int i;
......@@ -259,7 +260,12 @@ structseq_reduce(PyStructSequence* self)
self->ob_item[i]);
}
return Py_BuildValue("(O(OO))", self->ob_type, tup, dict);
result = Py_BuildValue("(O(OO))", self->ob_type, tup, dict);
Py_DECREF(tup);
Py_DECREF(dict);
return result;
}
static PySequenceMethods structseq_as_sequence = {
......
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