(compare_query_results_compare): Do not leak row memory
(main): Do not leak query string