]> sourceware.org Git - lvm2.git/commitdiff
Fix memory leak in process_each_pv path.
authorDave Wysochanski <dwysocha@redhat.com>
Wed, 15 Jul 2009 12:22:59 +0000 (12:22 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Wed, 15 Jul 2009 12:22:59 +0000 (12:22 +0000)
Author: Dave Wysochanski <dwysocha@redhat.com>

tools/toollib.c

index 8f38d494858dac160cc0bd1e2dc28e9e3ca348df..c31029df5eed3ec5c7ea796ce27817a9ff75153c 100644 (file)
@@ -723,6 +723,7 @@ int process_each_pv(struct cmd_context *cmd, int argc, char **argv,
                                vg = vg_read(cmd, sll->str, NULL, flags);
                                if (vg_read_error(vg)) {
                                        ret_max = ECMD_FAILED;
+                                       vg_release(vg);
                                        continue;
                                }
 
This page took 0.034242 seconds and 5 git commands to generate.