libidav/session.c

changeset 852
83fdf679df99
parent 828
e082e5d7d75b
child 853
2ad93ebdc8d9
--- a/libidav/session.c	Thu Nov 28 17:53:13 2024 +0100
+++ b/libidav/session.c	Mon Jan 06 21:18:36 2025 +0100
@@ -337,7 +337,7 @@
 }
 
 void dav_session_destructor(DavSession *sn) {
-    cxMempoolDestroy(sn->mp);
+    cxMempoolFree(sn->mp);
     curl_easy_cleanup(sn->handle);
     free(sn);
 }
@@ -632,7 +632,7 @@
         return;
     }
     
-    if(cxMapRemoveAndGet(locks->resource_locks, cx_hash_key_str(path))) {
+    if(!cxMapRemove(locks->resource_locks, cx_hash_key_str(path))) {
         return;
     }
 

mercurial