mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-20 06:35:25 -04:00
utils: remove_dangling_symlinks() - fix leak
We were not freeing the iterator.
This commit is contained in:
1 parent
c635633e6b
commit
e020803554
1 file changed
+1
-1
@@ -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