From: Zdenek Kabelac Date: Wed, 26 Jan 2011 21:21:56 +0000 (+0000) Subject: Add missing lvm_quit in test X-Git-Tag: v2_02_91~1158 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=23fb1fbd48cb94c418446022091dfca0e7e11f6b;p=lvm2.git Add missing lvm_quit in test Fix occasional confusing memory leak report in testing. --- diff --git a/test/api/percent.c b/test/api/percent.c index 7d3859e71..db686d7d8 100644 --- a/test/api/percent.c +++ b/test/api/percent.c @@ -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; }