mi_integer mi_drop_prepared_statement(stmt_desc)
MI_STATEMENT *stmt_desc;
The mi_drop_prepared_statement( ) frees the statement descriptor that stmt_desc references. It is the destructor function for a statement descriptor. The mi_prepare( ) function prepares a statement and returns a statement descriptor for the prepared statement. If a cursor (implicit or explicit) is associated with the prepared statement, mi_drop_prepared_statement( ) also frees this cursor.
See also the descriptions of mi_close_statement( ), mi_exec_prepared_statement( ), mi_open_prepared_statement( ), and mi_prepare( ).