diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-08 19:06:57 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-08 19:06:57 +0000 |
commit | eb7459bdaaef9ae5dba504a0cea73b867eb665a6 (patch) | |
tree | 60c1313cef9b568a59473623efd5fab18e351ad8 /regress/lib | |
parent | ae2f9f7cb1504d71828413846245c9a3dd854fb6 (diff) |
Plug leaks reported by Ilya Shipitsin
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libssl/unit/ssl_versions.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <jsing@openbsd.org> * @@ -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) { |