mysql_free_result(result_id)
This function destroys the specified result set (result_id), freeing all memory associated with it. As all memory is automatically freed at the end of a PHP script, this function is only really useful when working with multiple very large result sets in a single script.
The function name mysql_freeresult may also be used, but is deprecated.