mysql_free_result — Frees the memory associated to a result set

void mysql_free_result(MYSQL_RES * result);

Frees the memory associated to the specified result set.

Parameters

result

A result set identifier returned by mysql_store_result() or mysql_use_result().

Return value

void

[Note]

You should always free your result set with mysql_free_result() as soon it's not needed anymore

Row values obtained by a prior mysql_fetch_row() call will become invalid after calling mysql_free_result().

See also

mysql_store_result(), mysql_use_result()