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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user