]> granicus.if.org Git - libevent/commitdiff
test: add a comment for init_ssl() about suppressions for LSan
authorAzat Khuzhin <azat@libevent.org>
Sat, 13 Aug 2022 17:51:45 +0000 (19:51 +0200)
committerAzat Khuzhin <azat@libevent.org>
Sat, 13 Aug 2022 18:12:08 +0000 (20:12 +0200)
test/regress_openssl.c

index 6bddb65394d6a1d87b9e13ec5d87fcd0ebdd947b..3ea767c6c940a50b9e9a72b7076c99f9a35e8972 100644 (file)
@@ -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();