mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-11 02:43:15 +00:00
Fix for CONPY-99:
Decrement reference to row after adding it to lit to prevent memory leakage
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user