On Thu, Jan 19, 2012 at 1:03 PM, Marc Cals <cpm...@gmail.com> wrote:

> Hello,
>
> I have one doubt about sqlite3_get_table() method. When it returns an error
> is it necessary to free returned results invoking sqlite3_free_table
> method? Or when an error produced return NULL value as result ?
>

You should always invoke sqlite3_free_table() regardless of whether or not
an error was returned.  Sometimes the result will be NULL, sometimes not.
But either way sqlite3_free_table() will work.


>
> Thanks
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



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

Reply via email to