Issue #19437: Fix error handling of CDataType_from_buffer()

KeepRef() decreases the reference counter of its 'keep' parameter on error
This commit is contained in:
Victor Stinner 2013-11-18 18:35:55 +01:00
parent ed4a1c5703
commit 2399ad51d4
1 changed files with 0 additions and 1 deletions

View File

@ -454,7 +454,6 @@ CDataType_from_buffer(PyObject *type, PyObject *args)
Py_INCREF(obj);
if (-1 == KeepRef((CDataObject *)result, -1, obj)) {
Py_DECREF(result);
return NULL;
}
return result;