summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-05-18 13:42:22 +0200
committerAlexander Larsson <alexl@redhat.com>2016-05-18 13:42:58 +0200
commite0208035543ccd14b4697ca968c836263260ce96 (patch)
tree57524972d185e778bf55f36b24494135352306bd
parentc635633e6b36ec44a8baae7b50956f19cf44dd31 (diff)
downloadxdg-app-e0208035543ccd14b4697ca968c836263260ce96.tar.gz
utils: remove_dangling_symlinks() - fix leak
We were not freeing the iterator.
-rw-r--r--common/flatpak-utils.c2
1 files changed, 1 insertions, 1 deletions
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;