--- a/libidav/davqlparser.c Thu Nov 28 17:53:13 2024 +0100 +++ b/libidav/davqlparser.c Mon Jan 06 21:18:36 2025 +0100 @@ -1839,7 +1839,7 @@ void dav_free_statement(DavQLStatement *stmt) { if(stmt->fields) { cxDefineDestructor(stmt->fields, dav_free_field); - cxListDestroy(stmt->fields); + cxListFree(stmt->fields); } if (stmt->where) { @@ -1851,10 +1851,10 @@ if(stmt->orderby) { cxDefineDestructor(stmt->orderby, dav_free_order_criterion); - cxListDestroy(stmt->orderby); + cxListFree(stmt->orderby); } if(stmt->args) { - cxListDestroy(stmt->args); + cxListFree(stmt->args); } free(stmt); }