I have been working on a custom FTS5 tokenizer using SQLite 3.21.0. I noticed that in fts5CreateTokenizer() if the call to sqlite3_malloc() fails SQLITE_NOMEM is returned, however xDestroy (if present) is not called. A similar situation is handled differently in sqlite3_bind_pointer(); in that function, xDestructor is called on failure. In case of a failure in fts5CreateTokenizer() is it the caller's responsibility to invoke xDestroy() or should this be handled by SQLite?
Stephen _______________________________________________ sqlite-users mailing list [email protected] http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

