mysql_free_result(3)

mysql_free_result3

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

•

result - a result set identifier returned by mysql_store_result(3) or mysql_use_result(3).

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(3) call will become invalid after calling mysql_free_result().

See also

•

mysql_store_result(3)

•

mysql_use_result(3)

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13–Arch

From mariadb 13.0.2-2 in Arch Linux 2026-11-01. Also shipped by mariadb-lts. Parsed by carta from the page's man source.