testlibrbd: add missing va_end()

Coverity cid 57, 58

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-08-20 21:05:47 -07:00
parent 29c1ce5585
commit c61568512e

View File

@ -91,6 +91,7 @@ void test_ls(rados_ioctx_t io_ctx, size_t num_expected, ...)
}
assert(found);
}
va_end(ap);
for (i = 0, cur_name = names; i < num_images; i++) {
assert(cur_name[0] == '_');
@ -143,6 +144,7 @@ void test_ls_snaps(rbd_image_t image, int num_expected, ...)
}
assert(found);
}
va_end(ap);
for (i = 0; i < num_snaps; i++) {
assert(snaps[i].name == NULL);