mirror of https://github.com/python/cpython
Merge 3.2.
This commit is contained in:
commit
ea94ba45fa
|
@ -692,9 +692,11 @@ bytesio_getstate(bytesio *self)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dict = PyDict_Copy(self->dict);
|
dict = PyDict_Copy(self->dict);
|
||||||
if (dict == NULL)
|
if (dict == NULL) {
|
||||||
|
Py_DECREF(initvalue);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
state = Py_BuildValue("(OnN)", initvalue, self->pos, dict);
|
state = Py_BuildValue("(OnN)", initvalue, self->pos, dict);
|
||||||
Py_DECREF(initvalue);
|
Py_DECREF(initvalue);
|
||||||
|
|
Loading…
Reference in New Issue