API unit test fix to remove improperly placed `wolfSSL_Cleanup()` call in `test_for_double_Free`. This caused erronous report with `fsanitize=address`.

pull/2284/head
David Garske 2019-06-18 16:22:19 -07:00
parent 2435ec2d6b
commit dd9dd6306e
1 changed files with 0 additions and 1 deletions

View File

@ -673,7 +673,6 @@ static void test_for_double_Free(void)
/* First test freeing SSL, then CTX */ /* First test freeing SSL, then CTX */
wolfSSL_free(ssl); wolfSSL_free(ssl);
wolfSSL_CTX_free(ctx); wolfSSL_CTX_free(ctx);
wolfSSL_Cleanup();
#ifndef NO_WOLFSSL_CLIENT #ifndef NO_WOLFSSL_CLIENT
AssertNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_client_method())); AssertNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()));