csync: Free statedb file member before realloc

This commit is contained in:
Klaas Freitag 2016-07-17 21:13:17 +02:00
parent 78caa1a712
commit f3cfd2b70b

View file

@ -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);