Skip to content

Commit 064659c

Browse files
author
tb
committed
Plug leaks reported by Ilya Shipitsin
1 parent e64ee4f commit 064659c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/regress/lib/libssl/unit/ssl_versions.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ssl_versions.c,v 1.15 2021/06/27 16:54:55 jsing Exp $ */
1+
/* $OpenBSD$ */
22
/*
33
* Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
44
*
@@ -526,6 +526,10 @@ test_ssl_max_shared_version(void)
526526
i, svt->peerver);
527527
failed++;
528528
}
529+
SSL_CTX_free(ssl_ctx);
530+
SSL_free(ssl);
531+
ssl_ctx = NULL;
532+
ssl = NULL;
529533
continue;
530534
}
531535
if (maxver != svt->want_maxver) {

0 commit comments

Comments
 (0)