mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-15 21:52:08 -04:00
utils: remove_dangling_symlinks() - fix leak
We were not freeing the iterator.
This commit is contained in:
@@ -786,7 +786,7 @@ remove_dangling_symlinks (int parent_fd,
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
struct dirent *dent;
|
||||
GLnxDirFdIterator iter;
|
||||
g_auto(GLnxDirFdIterator) iter = { 0 };
|
||||
|
||||
if (!glnx_dirfd_iterator_init_at (parent_fd, name, FALSE, &iter, error))
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user