From: tb Date: Tue, 8 Feb 2022 19:06:56 +0000 (+0000) Subject: Plug leaks reported by Ilya Shipitsin X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6471f2aa41ca0006b62bd111d34fedc691485e34;p=openbsd Plug leaks reported by Ilya Shipitsin --- 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) {