FreeBSD manual
download PDF document: mysql_free_result.3.pdf
mysql_free_result(3) MariaDB Connector/C mysql_free_result(3)
Name
mysql_free_result - Frees result set
Synopsis
#include <mysql.h>
void mysql_free_result(MYSQL_RES * result);
Description
Frees the memory associated with a result set. Returns void.
Parameters
o result - a result set identifier returned by mysql_store_result(3) or
mysql_use_result(3).
Notes
o You should always free your result set with mysql_free_result() as
soon it's not needed anymore
o Row values obtained by a prior mysql_fetch_row(3) call will become
invalid after calling mysql_free_result().
See also
o mysql_store_result(3)
o mysql_use_result(3)
Version 3.3.1 mysql_free_result(3)