From: dtucker@openbsd.org Date: Thu, 20 Nov 2025 05:07:57 +0000 (+0000) Subject: upstream: Free opts in FAIL_TEST. It should always be NULL anyway so X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8718c3fc52511e5237f1cbe10c210948c5616ea;p=thirdparty%2Fopenssh-portable.git upstream: Free opts in FAIL_TEST. It should always be NULL anyway so this is a no-op, but it should placate Coverity CID 405064. OpenBSD-Regress-ID: 06789754de0741f26432c668fad8b9881c14c153 --- diff --git a/regress/unittests/authopt/tests.c b/regress/unittests/authopt/tests.c index a81dffbf7..2376b47dc 100644 --- a/regress/unittests/authopt/tests.c +++ b/regress/unittests/authopt/tests.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tests.c,v 1.4 2025/04/15 04:00:42 djm Exp $ */ +/* $OpenBSD: tests.c,v 1.5 2025/11/20 05:07:57 dtucker Exp $ */ /* * Regress test for keys options functions. @@ -141,6 +141,7 @@ test_authkeys_parse(void) opts = sshauthopt_parse(keywords, &errstr); \ ASSERT_PTR_EQ(opts, NULL); \ ASSERT_PTR_NE(errstr, NULL); \ + sshauthopt_free(opts); \ TEST_DONE(); \ } while (0) #define CHECK_SUCCESS_AND_CLEANUP() \