For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_free_result

mysql_free_result releases the memory allocated for a MariaDB result set; row values obtained from prior mysql_fetch_row calls become invalid after this call.

Syntax

void mysql_free_result(MYSQL_RES * result);

Parameter

Description

Frees the memory associated with a result set.

Return Value

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

spinner

Last updated

Was this helpful?