--- a/libidav/config.c Mon Jan 06 21:18:56 2025 +0100 +++ b/libidav/config.c Sun Feb 23 13:11:32 2025 +0100 @@ -1002,7 +1002,7 @@ int dav_config_register_keys(DavConfig *config, DavContext *ctx, dav_loadkeyfile_func loadkey) { for(DavCfgKey *key=config->keys;key;key=key->next) { - char *file = cx_strdup_m(key->file.value).ptr; + char *file = cx_strdup_a(cxDefaultAllocator, key->file.value).ptr; cxmutstr keycontent = loadkey(file); free(file); @@ -1013,7 +1013,7 @@ } DavKey *davkey = calloc(1, sizeof(DavKey)); - davkey->name = cx_strdup_m(key->name.value).ptr; + davkey->name = cx_strdup_a(cxDefaultAllocator, key->name.value).ptr; davkey->type = dav_config_keytype(key->type); davkey->data = keycontent.ptr; davkey->length = keycontent.length;