summaryrefslogtreecommitdiff
path: root/metadata
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-09-08 09:32:18 +0200
committerAlexander Larsson <alexl@redhat.com>2009-09-08 09:32:18 +0200
commit7d3f27bf9a94aef335a591bfdc927beacb0bd7a9 (patch)
tree1d947f7457152abca03d20b2b9f50e0a040e4c1f /metadata
parentc77e832a2b138de5507d7bd70f046457860d1e88 (diff)
downloadgvfs-7d3f27bf9a94aef335a591bfdc927beacb0bd7a9.tar.gz
Fix leak
Need to free /proc/fd/mountinfo contents after reading it.
Diffstat (limited to 'metadata')
-rw-r--r--metadata/metatree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/metadata/metatree.c b/metadata/metatree.c
index d587b711..21c69683 100644
--- a/metadata/metatree.c
+++ b/metadata/metatree.c
@@ -3002,7 +3002,10 @@ update_mountinfo (void)
contents = read_contents (mountinfo_fd);
lseek (mountinfo_fd, SEEK_SET, 0);
if (contents)
- mountinfo_roots = parse_mountinfo (contents);
+ {
+ mountinfo_roots = parse_mountinfo (contents);
+ g_free (contents);
+ }
}
static char *