mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #2284 from dgarske/api_test
Fixes for track memory and API unit test cleanup
This commit is contained in:
@ -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()));
|
||||||
|
@ -184,6 +184,7 @@
|
|||||||
header->next = NULL;
|
header->next = NULL;
|
||||||
if (ourMemList.tail == NULL) {
|
if (ourMemList.tail == NULL) {
|
||||||
ourMemList.head = header;
|
ourMemList.head = header;
|
||||||
|
header->prev = NULL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ourMemList.tail->next = header;
|
ourMemList.tail->next = header;
|
||||||
|
Reference in New Issue
Block a user