The method fmpz_poly_q_to_string_pretty() leaks memory because the underlying FLINT 1.5.0 method does so.