Skip to content

Commit

Permalink
Merge pull request #275 from haiwen/fix_mem_leak
Browse files Browse the repository at this point in the history
Fix memory leak when del file.
  • Loading branch information
killing committed Oct 22, 2019
2 parents f0bf80e + b6bc0b2 commit c9b2929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/repo-op.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,6 +1562,8 @@ del_file_recursive(SeafRepo *repo,

if (deleted_num == 0) {
ret = g_strdup(olddir->dir_id);
if (newentries)
g_list_free_full (newentries, (GDestroyNotify)seaf_dirent_free);
goto out;
}

Expand Down

0 comments on commit c9b2929

Please sign in to comment.