# HG changeset patch # User Olaf Wintermann # Date 1728244984 -7200 # Node ID e082e5d7d75b7bbeb33e781206c222a751549e77 # Parent d9928f11970f7ce586994fb7f7c2e6b32642a0e8 fix dav_session_clone using the wrong allocator for the pathcache diff -r d9928f11970f -r e082e5d7d75b libidav/session.c --- a/libidav/session.c Fri Sep 13 18:21:04 2024 +0200 +++ b/libidav/session.c Sun Oct 06 22:03:04 2024 +0200 @@ -119,7 +119,7 @@ DavSession *newsn = malloc(sizeof(DavSession)); memset(newsn, 0, sizeof(DavSession)); newsn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE); - newsn->pathcache = cxHashMapCreate(sn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE); + newsn->pathcache = cxHashMapCreate(newsn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE); newsn->key = sn->key; newsn->errorstr = NULL; newsn->error = DAV_OK;