Name

mysql_free_result

Synopsis

void mysql_free_result(MYSQL_RES *result) 

Frees the memory associated with a MYSQL_RES structure. This must be called whenever you are finished using this type of structure or else memory problems will occur.

Example

MYSQL_RES *results;
/* Do work with results */
mysql_free_result(results);

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.