From ddb8cd601dcc18bb95f539f5bf0fabf34de1e278 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 4 Jul 2022 16:07:28 -0400 Subject: [PATCH] test_suite_ssl: Fix handshake options cleanup Signed-off-by: Andrzej Kurek --- tests/suites/test_suite_ssl.function | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index f780fef3fc..c65b56554f 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -4905,7 +4905,7 @@ void handshake_psk_cipher( char* cipher, int pk_alg, data_t *psk_str, int dtls ) /* The goto below is used to avoid an "unused label" warning.*/ goto exit; - exit: +exit: free_handshake_options( &options ); } /* END_CASE */ @@ -4941,6 +4941,9 @@ void handshake_ciphersuite_select( char* cipher, int pk_alg, data_t *psk_str, /* The goto below is used to avoid an "unused label" warning.*/ goto exit; + +exit: + free_handshake_options( &options ); } /* END_CASE */ @@ -5065,6 +5068,8 @@ void renegotiation( int legacy_renegotiation ) /* The goto below is used to avoid an "unused label" warning.*/ goto exit; +exit: + free_handshake_options( &options ); } /* END_CASE */ @@ -5111,9 +5116,6 @@ void resize_buffers_renegotiate_mfl( int mfl, int legacy_renegotiation, /* The goto below is used to avoid an "unused label" warning.*/ goto exit; - -exit: - free_handshake_options( &options ); } /* END_CASE */