libidav/davqlparser.c

changeset 101
7b3a3130be44
parent 49
2f71f4ee247a
--- a/libidav/davqlparser.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/libidav/davqlparser.c	Mon Jan 06 22:22:55 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);
 }

mercurial