fix memory leak by freeing queries at bottom of loop
1 file changed