mysqlstmtfreeresult
The mysql_stmt_free_result function in the MySQL C API is used to deallocate the result set buffer associated with a prepared statement. When a prepared statement is executed and produces a result set, the data is typically buffered by the MySQL client library. This buffering allows for efficient retrieval of results using functions like mysql_stmt_fetch.
However, once the application has finished processing or retrieving all the data from a result set, it
It is important to call mysql_stmt_free_result after all rows have been fetched or if the application decides