From dd9dd6306ee77bfcb164ffcdcf3262d0120f6a1c Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 18 Jun 2019 16:22:19 -0700 Subject: [PATCH] API unit test fix to remove improperly placed `wolfSSL_Cleanup()` call in `test_for_double_Free`. This caused erronous report with `fsanitize=address`. --- tests/api.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 72c3b5f3e..b614e62cf 100644 --- a/tests/api.c +++ b/tests/api.c @@ -673,7 +673,6 @@ static void test_for_double_Free(void) /* First test freeing SSL, then CTX */ wolfSSL_free(ssl); wolfSSL_CTX_free(ctx); - wolfSSL_Cleanup(); #ifndef NO_WOLFSSL_CLIENT AssertNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()));