mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Fix memleak with id_list - WIP
This commit is contained in:
parent
275c18df82
commit
a496bb0e13
1 changed files with 7 additions and 2 deletions
|
@ -153,6 +153,11 @@ int csync_create(CSYNC **csync, const char *local, const char *remote) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
ctx->local.list = 0;
|
||||
ctx->local.id_list = 0;
|
||||
ctx->remote.list = 0;
|
||||
ctx->remote.id_list = 0;
|
||||
|
||||
*csync = ctx;
|
||||
return 0;
|
||||
}
|
||||
|
@ -757,10 +762,10 @@ int csync_commit(CSYNC *ctx) {
|
|||
/* free memory */
|
||||
c_rbtree_free(ctx->local.tree);
|
||||
c_list_free(ctx->local.list);
|
||||
c_list_free(ctx->local.id_list);
|
||||
// c_list_free(ctx->local.id_list);
|
||||
c_rbtree_free(ctx->remote.tree);
|
||||
c_list_free(ctx->remote.list);
|
||||
c_list_free(ctx->remote.id_list);
|
||||
// c_list_free(ctx->remote.id_list);
|
||||
|
||||
/* create/load statedb */
|
||||
if (! csync_is_statedb_disabled(ctx)) {
|
||||
|
|
Loading…
Reference in a new issue