# maxdb_free_result

# maxdb_result::free

(PECL maxdb >= 1.0)

maxdb_free_result -- maxdb_result::free — Frees the memory associated with a result

### 说明

过程化风格

maxdb_free_result ( resource `$result` ) : void

面向对象风格

maxdb_result::free ( void ) : void

The maxdb_free_result() function frees the memory associated with the result represented by the `result` parameter, which was allocated by maxdb_query(), maxdb_store_result() or maxdb_use_result().

> Note:

> You should always free your result with maxdb_free_result(), when your result resource is not needed anymore.

### 返回值

This function doesn't return any value.

### 参见

- maxdb_query() - Performs a query on the database
- maxdb_stmt_store_result() - Transfers a result set from a prepared statement
- maxdb_store_result() - Transfers a result set from the last query
- maxdb_use_result() - Initiate a result set retrieval