From: Danny Al-Gaaf Date: Thu, 13 Mar 2014 08:03:57 +0000 (+0100) Subject: test_librbd.cc: add missing va_end() to test_ls_pp X-Git-Tag: v0.79~149^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94acb6b31306781e4c1f95b39a3c547842d7047f;p=ceph.git test_librbd.cc: add missing va_end() to test_ls_pp CID 1054877 (#1 of 1): Missing varargs init or cleanup (VARARGS) 17. missing_va_end: va_end was not called for "ap". Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index 5169a14e3b78..d0b9c994f12f 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -314,6 +314,8 @@ int test_ls_pp(librbd::RBD& rbd, librados::IoCtx& io_ctx, size_t num_expected, . assert(listed_name != names.end()); names.erase(listed_name); } + va_end(ap); + assert(names.empty()); return num;