This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

mysql_free_result

Syntax

void mysql_free_result(MYSQL_RES * result);

Description

Frees the memory associated with a result set. Returns void.

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

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.