KSQL_STMT_FREE(3) Library Functions Manual KSQL_STMT_FREE(3)

ksql_stmt_free
free a statement on a database connection

library “ksql”

#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
ksql_stmt_free(struct ksqlstmt *stmt);

The ksql_stmt_free function frees a statement allocated with ksql_stmt_alloc(3), invoking sqlite3_finalize(3) on the underlying statement. This does nothing if stmt is NULL.

Returns KSQL_OK on success or another error on failure. Note: this does not return the code of sqlite3_finalize(3), which itself returns the code of the last step and not the failure of the resource de-allocation.

sqlite3_finalize(3)
April 3, 2018 OpenBSD 6.4