Skip to content

mysql_free_result

Georg Richter edited this page Aug 15, 2018 · 2 revisions

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

Notes

  • 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

Clone this wiki locally