Releases resources for the query associated with result_id. Returns TRUE on success or FALSE on failure.