libidav/methods.c

changeset 852
83fdf679df99
parent 850
bbe2925eb590
--- a/libidav/methods.c	Thu Nov 28 17:53:13 2024 +0100
+++ b/libidav/methods.c	Mon Jan 06 21:18:36 2025 +0100
@@ -117,7 +117,7 @@
     
     // deactivate header capturing and free captured map
     util_capture_header(handle, NULL);
-    cxMapDestroy(respheaders);
+    cxMapFree(respheaders);
        
     return ret;
 }
@@ -271,7 +271,7 @@
     // end
     cx_bprintf(buf, "</D:prop>\n</D:%s>\n", rootelm);
     
-    cxMapDestroy(namespaces);
+    cxMapFree(namespaces);
     return buf;
 }
 
@@ -445,7 +445,7 @@
 
 void cleanup_response(ResponseTag *result) {
     if(result) {
-        cxListDestroy(result->properties);
+        cxListFree(result->properties);
     }
 }
 
@@ -733,7 +733,7 @@
             }
         }
     }
-    cxListDestroy(properties);
+    cxListFree(properties);
     
     if(crypto_prop && crypto_key) {
         char *crypto_prop_content = util_xml_get_text(crypto_prop);
@@ -949,7 +949,7 @@
     cxBufferWrite(s.ptr, 1, s.length, buf);
     
     // cleanup namespace map
-    cxMapDestroy(namespaces);
+    cxMapFree(namespaces);
     
     return buf;
 }

mercurial