mirror of https://github.com/python/cpython
For easier merging, revert ths change; it will be brought back in when
the trunk is merged.
This commit is contained in:
parent
7f16288134
commit
3e6cbf178b
|
@ -457,11 +457,13 @@ StructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct)
|
|||
|
||||
if (!prop) {
|
||||
Py_DECREF(pair);
|
||||
Py_DECREF((PyObject *)stgdict);
|
||||
return -1;
|
||||
}
|
||||
if (-1 == PyDict_SetItem(realdict, name, prop)) {
|
||||
Py_DECREF(prop);
|
||||
Py_DECREF(pair);
|
||||
Py_DECREF((PyObject *)stgdict);
|
||||
return -1;
|
||||
}
|
||||
Py_DECREF(pair);
|
||||
|
|
Loading…
Reference in New Issue