libidav/session.c

changeset 102
64ded9f6a6c6
parent 101
7b3a3130be44
--- a/libidav/session.c	Mon Jan 06 22:22:55 2025 +0100
+++ b/libidav/session.c	Tue Feb 25 21:11:00 2025 +0100
@@ -49,7 +49,7 @@
     }
     DavSession *sn = malloc(sizeof(DavSession));
     memset(sn, 0, sizeof(DavSession));
-    sn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE);
+    sn->mp = cxMempoolCreateSimple(DAV_SESSION_MEMPOOL_SIZE);
     sn->pathcache = cxHashMapCreate(sn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE);
     sn->key = NULL;
     sn->errorstr = NULL;
@@ -118,7 +118,7 @@
 
     DavSession *newsn = malloc(sizeof(DavSession));
     memset(newsn, 0, sizeof(DavSession));
-    newsn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE);
+    newsn->mp = cxMempoolCreateSimple(DAV_SESSION_MEMPOOL_SIZE);
     newsn->pathcache = cxHashMapCreate(newsn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE);
     newsn->key = sn->key;
     newsn->errorstr = NULL;

mercurial