On 1/5/19, Jesse Rittner <rittneje+sql...@gmail.com> wrote:
> Is it safe to free the filename string immediately after calling
> sqlite3_open_v2? What about the zSql string immediately after calling
> sqlite3_prepare_v2? Will it ever cause any problems (like calling the
> sqlite3_db_filename or sqlite3_sql methods)?

SQLite makes copies.  You can free strings after those routine return.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to