From: Alexander Sosedkin Date: Thu, 19 Feb 2026 11:59:26 +0000 (+0100) Subject: tests/resume-with-*: add a few overlooked frees X-Git-Tag: 3.8.13~27^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da96ea278c7fd3eeb4396bd0575a49e7d49d08c4;p=thirdparty%2Fgnutls.git tests/resume-with-*: add a few overlooked frees Signed-off-by: Alexander Sosedkin --- diff --git a/tests/resume-with-previous-stek.c b/tests/resume-with-previous-stek.c index dbadad810a..f88bed1c7a 100644 --- a/tests/resume-with-previous-stek.c +++ b/tests/resume-with-previous-stek.c @@ -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"); diff --git a/tests/resume-with-stek-expiration.c b/tests/resume-with-stek-expiration.c index 7aba2af011..aed3c228d4 100644 --- a/tests/resume-with-stek-expiration.c +++ b/tests/resume-with-stek-expiration.c @@ -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,