Dangling free_result() after the query was reworked.

One more quick fix.