Fixed iterator refcount in case of memory error during COPY

This commit is contained in:
Daniele Varrazzo 2012-03-05 02:09:20 +00:00
parent 735d50c782
commit 8707d8c399

View File

@ -1205,6 +1205,7 @@ static char *_psyco_curs_copy_columns(PyObject *columns)
}
if (NULL == (columnlist = PyMem_Malloc(bufsize))) {
Py_DECREF(coliter);
PyErr_NoMemory();
goto error;
}