utils: remove_dangling_symlinks() - fix leak

We were not freeing the iterator.
This commit is contained in:
Alexander Larsson
2016-05-18 13:42:22 +02:00
parent c635633e6b
commit e020803554

View File

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