dav/sync.c

changeset 775
e5909dff0dbf
parent 767
f4acc783f25e
child 779
a0e02b70dad1
--- 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);

mercurial