]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/resume-with-*: add a few overlooked frees
authorAlexander Sosedkin <asosedkin@redhat.com>
Thu, 19 Feb 2026 11:59:26 +0000 (12:59 +0100)
committerAlexander Sosedkin <asosedki@redhat.com>
Fri, 27 Feb 2026 08:40:37 +0000 (08:40 +0000)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
tests/resume-with-previous-stek.c
tests/resume-with-stek-expiration.c

index dbadad810a16db58c421df0e334c5f62e12671a2..f88bed1c7aa135ecf18427e09277bcee64227a78 100644 (file)
@@ -83,6 +83,8 @@ static void client_handshake(gnutls_session_t session,
                success("client: Success: Session was NOT resumed\n");
 
        if (!resume) {
+               gnutls_free(session_data->data);
+               session_data->data = NULL;
                if ((ret = gnutls_session_get_data2(session, session_data)) <
                    0) {
                        fail("client: Could not get session data\n");
index 7aba2af01109653a82f9b388b348aaf6f5deeb64..aed3c228d4141ad356880bcfc15cfd1f87c4a496 100644 (file)
@@ -191,6 +191,8 @@ static void client(int fd, int *resumption_should_succeed,
                        gnutls_certificate_free_credentials(clientx509cred);
                gnutls_deinit(session);
        }
+
+       gnutls_free(session_data.data);
 }
 
 static void server(int fd, int *resumption_should_succeed,