]> sourceware.org Git - lvm2.git/commitdiff
Add missing lvm_quit in test
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 26 Jan 2011 21:21:56 +0000 (21:21 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 26 Jan 2011 21:21:56 +0000 (21:21 +0000)
Fix occasional confusing memory leak report in testing.

test/api/percent.c

index 7d3859e71ed0e9ed0f3c59b9ba975283a430b651..db686d7d845a97f3fc073a7075dfac235aa59199 100644 (file)
@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
         assert(v.is_valid);
         assert(v.value.integer == PERCENT_0);
 
-        lv = lvm_lv_from_name(vg, "mirr");
+       lv = lvm_lv_from_name(vg, "mirr");
         assert(lv);
 
         v = lvm_lv_get_property(lv, "copy_percent");
@@ -52,5 +52,7 @@ int main(int argc, char *argv[])
         assert(v.value.integer == 50 * PERCENT_1);
 
         lvm_vg_close(vg);
+
+       lvm_quit(handle);
         return 0;
 }
This page took 0.038141 seconds and 5 git commands to generate.