From 6471f2aa41ca0006b62bd111d34fedc691485e34 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 8 Feb 2022 19:06:56 +0000 Subject: [PATCH] Plug leaks reported by Ilya Shipitsin --- regress/lib/libssl/unit/ssl_versions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/lib/libssl/unit/ssl_versions.c b/regress/lib/libssl/unit/ssl_versions.c index 62ecc78245c..8a6360557f4 100644 --- a/regress/lib/libssl/unit/ssl_versions.c +++ b/regress/lib/libssl/unit/ssl_versions.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_versions.c,v 1.16 2021/12/29 23:04:12 tb Exp $ */ +/* $OpenBSD: ssl_versions.c,v 1.17 2022/02/08 19:06:56 tb Exp $ */ /* * Copyright (c) 2016, 2017 Joel Sing * @@ -526,6 +526,10 @@ test_ssl_max_shared_version(void) i, svt->peerver); failed++; } + SSL_CTX_free(ssl_ctx); + SSL_free(ssl); + ssl_ctx = NULL; + ssl = NULL; continue; } if (maxver != svt->want_maxver) { -- 2.20.1