]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Free opts in FAIL_TEST. It should always be NULL anyway so
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 20 Nov 2025 05:07:57 +0000 (05:07 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 20 Nov 2025 05:33:36 +0000 (16:33 +1100)
this is a no-op, but it should placate Coverity CID 405064.

OpenBSD-Regress-ID: 06789754de0741f26432c668fad8b9881c14c153

regress/unittests/authopt/tests.c

index a81dffbf7ba3aee5bc22c58df9902584d2f6878c..2376b47dc48c88a6cdd98e87288a39fee7f2af97 100644 (file)
@@ -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() \