mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
csync: Only free the statedb filename on destroy.
The filename must not be wiped in csync_commit as that is happening after every sync. It is only set once in the constructor of the SyncEngine in csync_init().
This commit is contained in:
parent
f0dc3b2deb
commit
0c9dcdafc2
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,6 @@ static void _csync_clean_ctx(CSYNC *ctx)
|
|||
c_rbtree_free(ctx->local.tree);
|
||||
c_rbtree_free(ctx->remote.tree);
|
||||
|
||||
SAFE_FREE(ctx->statedb.file);
|
||||
SAFE_FREE(ctx->remote.root_perms);
|
||||
}
|
||||
|
||||
|
@ -575,6 +574,7 @@ int csync_destroy(CSYNC *ctx) {
|
|||
|
||||
_csync_clean_ctx(ctx);
|
||||
|
||||
SAFE_FREE(ctx->statedb.file);
|
||||
SAFE_FREE(ctx->local.uri);
|
||||
SAFE_FREE(ctx->remote.uri);
|
||||
SAFE_FREE(ctx->error_string);
|
||||
|
|
Loading…
Reference in a new issue