[openssh-commits] [openssh] 03/03: upstream: Free opts in FAIL_TEST. It should always be NULL anyway so

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Nov 20 16:33:54 AEDT 2025


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit a8718c3fc52511e5237f1cbe10c210948c5616ea
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Thu Nov 20 05:07:57 2025 +0000

    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
---
 regress/unittests/authopt/tests.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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() \

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list