MYSQL - Fixed memory leak when querying clusters