--- a/dav/sync.c Sun Jul 02 12:06:45 2023 +0200 +++ b/dav/sync.c Sun Jul 02 13:23:51 2023 +0200 @@ -635,7 +635,7 @@ } DavSession *sn = create_session(a, ctx, repo, dir->collection); - util_regdestr(sn->mp, db, (cx_destructor_func)destroy_db); + cxMempoolRegister(sn->mp, db, (cx_destructor_func)destroy_db); if (cmd_getoption(a, "verbose")) { curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr); @@ -1966,7 +1966,7 @@ remove_deleted_conflicts(dir, db); DavSession *sn = create_session(a, ctx, repo, dir->collection); - util_regdestr(sn->mp, db, (cx_destructor_func)destroy_db); + cxMempoolRegister(sn->mp, db, (cx_destructor_func)destroy_db); if (cmd_getoption(a, "verbose")) { curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr); @@ -2634,7 +2634,7 @@ return -1; } DavSession *sn = create_session(a, ctx, repo, dir->collection); - util_regdestr(sn->mp, db, (cx_destructor_func)destroy_db); + cxMempoolRegister(sn->mp, db, (cx_destructor_func)destroy_db); if (cmd_getoption(a, "verbose")) { curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr); @@ -5016,7 +5016,7 @@ remove_deleted_conflicts(dir, db); DavSession *sn = create_session(a, ctx, repo, dir->collection); - util_regdestr(sn->mp, db, (cx_destructor_func)destroy_db); + cxMempoolRegister(sn->mp, db, (cx_destructor_func)destroy_db); if (cmd_getoption(a, "verbose")) { curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr);