From 8dd9ca5e2a1e7d0875e2dcdf0aaf18b9ca9016dc Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 13 Dec 2015 04:29:09 +0000 Subject: MFC r291980,r291981: r291980: Add missing va_ends for corresponding va_starts to clean up variable arguments initialized in _test_fmt(..) Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division r291981: Delete bogus freeing of uninitialized data Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division --- lib/libc/tests/stdio/printfloat_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libc/tests/stdio/printfloat_test.c') diff --git a/lib/libc/tests/stdio/printfloat_test.c b/lib/libc/tests/stdio/printfloat_test.c index a588c6b..259c5df 100644 --- a/lib/libc/tests/stdio/printfloat_test.c +++ b/lib/libc/tests/stdio/printfloat_test.c @@ -86,6 +86,8 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...) "wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n", wfmt, argstr, ws, wresult); } + va_end(ap); + va_end(ap2); } ATF_TC_WITHOUT_HEAD(float_within_limits); -- cgit v1.1