From e11acb2c9b7f4c8fe0a663e67d3ff482f0f6ced1 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 27 Jun 2022 06:11:34 -0400 Subject: [PATCH] test_suite_ssl: add proper cache cleanup Signed-off-by: Andrzej Kurek --- tests/suites/test_suite_ssl.function | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index 14504e377c..09b9d8e661 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -4880,6 +4880,9 @@ void handshake_version( int dtls, int client_min_version, int client_max_version /* The goto below is used to avoid an "unused label" warning.*/ goto exit; + +exit: + free_handshake_options( &options ); } /* END_CASE */ @@ -4898,6 +4901,9 @@ 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: + free_handshake_options( &options ); } /* END_CASE */ @@ -5056,9 +5062,6 @@ 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 */ @@ -5094,9 +5097,6 @@ void resize_buffers_serialize_mfl( int mfl ) /* The goto below is used to avoid an "unused label" warning.*/ goto exit; - -exit: - free_handshake_options( &options ); } /* END_CASE */