Heavy memory leak observed while running the attached script. This script is simplified in order to demonstrate and allow for replication of the issue.
It looks like the leak is around cursor.execute/cursor.fetchall methods
This is a critical/blocker issue as shortly the script eats enormous amount of memory.
The actual project I work on uses pooled connections and intensive SQL SELECT operations. With this memory leak we can not use mariadb. Same script with mysql connector shows no memory leaks.