This function frees the storage used by an application-owned result set.
This function should only be used for result sets created using the copyResultSet function. If the result set is owned by the statistics API, an attempt to free the result set returns an error.