diff options
author | David Zeuthen <davidz@redhat.com> | 2011-08-13 11:59:02 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-08-13 11:59:02 -0400 |
commit | cd29f3d0d6a5b82edd1300f4475309f36cd2c6b2 (patch) | |
tree | ab5070947623a76b8381db6041bf47f750cc0a7c | |
parent | 18c476fc84dd546a220a72e71e42063c53ad3267 (diff) |
Don't leak fd while enumerating directories
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | src/udisksdaemonutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udisksdaemonutil.c b/src/udisksdaemonutil.c index d685325..69b35cc 100644 --- a/src/udisksdaemonutil.c +++ b/src/udisksdaemonutil.c @@ -279,6 +279,8 @@ udisks_daemon_util_resolve_links (const gchar *path, g_ptr_array_add (p, NULL); out: + if (dir != NULL) + g_dir_close (dir); g_free (s); return (gchar **) g_ptr_array_free (p, FALSE); |