1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-12 04:38:51 +00:00

Fix memory leak when del file.

This commit is contained in:
ly1217
2019-10-21 02:20:17 -07:00
parent f0bf80e8ae
commit b6bc0b2f39

View File

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