Collect garbage for cycles
Replace spaces with tabs
Merge pull request #5873 from lucasmichot/4.2-testItDoesNotLeakMemoryOnNewQueryWithJoin

[4.2] Db memory leak : failing test