Fix for CONPY-99:

Decrement reference to row after adding it to lit to prevent
memory leakage
This commit is contained in:
Georg Richter
2020-08-16 09:40:10 +02:00
parent 92eaf17fd5
commit 74933240ba

View File

@ -1196,6 +1196,8 @@ MrdbCursor_fetchall(MrdbCursor *self)
ma_set_result_column_value(self, Row, j);
}
PyList_Append(List, Row);
/* CONPY-99: Decrement Row to prevent memory leak */
Py_DECREF(Row);
}
self->row_count= (self->is_text) ? mysql_num_rows(self->result) :
mysql_stmt_num_rows(self->stmt);