]> sourceware.org Git - lvm2.git/commitdiff
Fix memory leak of vg_read while using live copies of metadata in directories.
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 30 Sep 2010 14:12:14 +0000 (14:12 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 30 Sep 2010 14:12:14 +0000 (14:12 +0000)
WHATS_NEW
lib/format_text/format-text.c

index 4dde8a57ccd8f840a6fe57be1cce823791f009cc..735735e3417bf6e8dcc8b3a70dad165e61bf689b 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.75 - 
 =====================================
+  Fix memory leak of vg_read while using live copies of metadata in directories.
   Fix memory leak of config_tree in reinitialization code path.
   Swap pool destruction order in dmeventd_lvm2_exit() to fix leak report.
   Read whole /proc/self/maps file before working with maps entries.
index 1a03e84e93a0432796c36d38ffa844c1a420baeb..e60df50239981151a484692962d563a5ca09d8fd 100644 (file)
@@ -1083,9 +1083,11 @@ static int _scan_file(const struct format_type *fmt)
                                fid = _text_create_text_instance(fmt, NULL, NULL,
                                                            NULL);
                                if ((vg = _vg_read_file_name(fid, vgname,
-                                                            path)))
+                                                            path))) {
                                        /* FIXME Store creation host in vg */
                                        lvmcache_update_vg(vg, 0);
+                                       dm_pool_destroy(vg->vgmem);
+                               }
                        }
 
                if (closedir(d))
This page took 0.04911 seconds and 5 git commands to generate.