summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2022-08-13 19:51:45 +0200
committerAzat Khuzhin <azat@libevent.org>2022-08-13 20:12:08 +0200
commit4ca417afa4dde0895707e2cf6faf1e8ac2d101e1 (patch)
tree4af7e70ffceb52da3df55d63ba128e2b95d62729 /test
parent99fd68abde4a59b90148db733fc51a7256cbd320 (diff)
downloadlibevent-4ca417afa4dde0895707e2cf6faf1e8ac2d101e1.tar.gz
test: add a comment for init_ssl() about suppressions for LSan
Diffstat (limited to 'test')
-rw-r--r--test/regress_openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/regress_openssl.c b/test/regress_openssl.c
index 6bddb653..3ea767c6 100644
--- a/test/regress_openssl.c
+++ b/test/regress_openssl.c
@@ -153,6 +153,7 @@ init_ssl(void)
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
(defined(LIBRESSL_VERSION_NUMBER) && \
LIBRESSL_VERSION_NUMBER < 0x20700000L)
+ /* NOTE: you should destroy every global objects to avoid leaks, see lsan.supp */
SSL_library_init();
ERR_load_crypto_strings();
SSL_load_error_strings();