Skip to content

Commit 1d9d1de

Browse files
author
virco
committed
fix
1 parent 4acfe62 commit 1d9d1de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ppathstatus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ void psync_path_status_init() {
146146
psync_list_add_tail(&parent_cache_lru, &parent_cache_entries[i].list_lru);
147147
psync_list_add_tail(&cache_free, &parent_cache_entries[i].list_hash);
148148
}
149-
psync_tree_for_each_element_call(folder_tasks, folder_tasks_t, tree, psync_free);
149+
psync_tree_for_each_element_call_safe(folder_tasks, folder_tasks_t, tree, psync_free);
150150
folder_tasks=PSYNC_TREE_EMPTY;
151-
psync_tree_for_each_element_call(sync_data, sync_data_t, tree, sync_data_free);
151+
psync_tree_for_each_element_call_safe(sync_data, sync_data_t, tree, sync_data_free);
152152
sync_data=PSYNC_TREE_EMPTY;
153153
psync_path_status_reload_syncs();
154154
psync_path_status_clear_path_cache();

0 commit comments

Comments
 (0)