* Dan:

> On Nov 19, 2008, at 9:59 PM, Florian Weimer wrote:
>
>> In order to avoid a resource leak, I think I need some sort of
>> callback when the memory allocated by sqlite3_aggregate_context is
>> freed by SQLite.
>>
>> As far as I can see, it is not guaranteed that the xFinal function
>> specified in sqlite3_create_function will be called in all cases, so
>> this is not the right place to free data referenced by the aggregate
>> context.
>
> It is guaranteed that the xFinal callback will be called in all cases.

Good.  I checked that it's called when sqlite3_interrupt() is invoked,
so for my purposes, it should be fine.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to