From e0208035543ccd14b4697ca968c836263260ce96 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 18 May 2016 13:42:22 +0200 Subject: utils: remove_dangling_symlinks() - fix leak We were not freeing the iterator. --- common/flatpak-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index 18e66cf..f7f98da 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -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; -- cgit v1.2.1