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.

Dan.

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

Reply via email to