--- a/libidav/methods.c Thu Dec 12 20:01:43 2024 +0100 +++ b/libidav/methods.c Mon Jan 06 22:22:55 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; }