It could be either a pointer to sqlite3_value_text of sqlite3_value* or it could be a pointer to a locally declared variable, so that is declared in a procedure in a VB6 ActiveX dll. Do I need to run sqlite3_free in the first case and not in the second case? If do need to run it how do I do it? As an argument in sqlite3_result_text or after running sqlite3_result_text? Do I need to run it with a pointer?
RBS On Mon, Dec 14, 2015 at 7:27 PM, Igor Tandetnik <igor at tandetnik.org> wrote: > On 12/14/2015 2:21 PM, Bart Smissaert wrote: > >> Not sure if I need to call sqlite3_free after running sqlite3_result_text >> or >> if sqlite3_free should be an argument (last one) in sqlite3_result_text. >> > > That depends on how the memory was obtained that the second argument > points to. > -- > Igor Tandetnik > > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users >