libidav/config.c

changeset 101
7b3a3130be44
parent 72
d5307e9ee384
--- a/libidav/config.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/libidav/config.c	Mon Jan 06 22:22:55 2025 +0100
@@ -266,14 +266,14 @@
     
     if(ret != 0 && error) {
         *error = ret;
-        cxMempoolDestroy(cfg_mp);
+        cxMempoolFree(cfg_mp);
     } 
     
     return config;
 }
 
 void dav_config_free(DavConfig *config) {
-    cxMempoolDestroy(config->mp);
+    cxMempoolFree(config->mp);
 }
 
 CxBuffer* dav_config2buf(DavConfig *config) {

mercurial