diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-09-07 16:17:45 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-09-07 16:17:45 +0200 |
commit | c77e832a2b138de5507d7bd70f046457860d1e88 (patch) | |
tree | 32573fbb20c9aa8129aa9c987dfd2676d11e827d /metadata | |
parent | 3618e00eb921f8d288f57461f0dc7ece5704589b (diff) | |
download | gvfs-c77e832a2b138de5507d7bd70f046457860d1e88.tar.gz |
Fix memory leaks
Found these with valgrind
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/metatree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/metadata/metatree.c b/metadata/metatree.c index 38c7d45b..d587b711 100644 --- a/metadata/metatree.c +++ b/metadata/metatree.c @@ -3220,6 +3220,7 @@ expand_parents (MetaLookupCache *cache, strcmp (cache->last_parent, parent) != 0) { g_free (cache->last_parent); + g_free (cache->last_parent_expanded); cache->last_parent = parent; cache->last_parent_expanded = expand_all_symlinks (parent, &parent_dev); cache->last_parent_dev = parent_dev; @@ -3233,6 +3234,7 @@ expand_parents (MetaLookupCache *cache, *parent_dev_out = cache->last_parent_dev; basename = g_path_get_basename (path_copy); + g_free (path_copy); res = g_build_filename (cache->last_parent_expanded, basename, NULL); g_free (basename); @@ -3313,6 +3315,7 @@ meta_lookup_cache_lookup_path (MetaLookupCache *cache, } found: + g_free (expanded); tree = meta_tree_lookup_by_name (treename, for_write); if (tree) { |