From c61568512e37764640f955abb4734262263e5c27 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 20 Aug 2011 21:05:47 -0700 Subject: [PATCH] testlibrbd: add missing va_end() Coverity cid 57, 58 Signed-off-by: Sage Weil --- src/testlibrbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testlibrbd.c b/src/testlibrbd.c index d5e4f89747f..1290d24691a 100644 --- a/src/testlibrbd.c +++ b/src/testlibrbd.c @@ -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);