mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
csync: Free statedb file member before realloc
This commit is contained in:
parent
78caa1a712
commit
f3cfd2b70b
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ void csync_init(CSYNC *ctx, const char *db_file) {
|
|||
|
||||
ctx->remote.type = REMOTE_REPLICA;
|
||||
|
||||
SAFE_FREE(ctx->statedb.file);
|
||||
ctx->statedb.file = c_strdup(db_file);
|
||||
|
||||
c_rbtree_create(&ctx->local.tree, _key_cmp, _data_cmp);
|
||||
|
|
Loading…
Reference in a new issue