mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
fixed memory leak in unit test
This commit is contained in:
@@ -36705,6 +36705,7 @@ static void test_wolfSSL_EVP_PKEY_param_check(void)
|
|||||||
AssertIntEQ(EVP_PKEY_param_check(ctx), WOLFSSL_FAILURE);
|
AssertIntEQ(EVP_PKEY_param_check(ctx), WOLFSSL_FAILURE);
|
||||||
|
|
||||||
EVP_PKEY_CTX_free(ctx);
|
EVP_PKEY_CTX_free(ctx);
|
||||||
|
EVP_PKEY_free(pkey);
|
||||||
printf(resultFmt, passed);
|
printf(resultFmt, passed);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -36728,6 +36729,8 @@ static void test_wolfSSL_QT_EVP_PKEY_CTX_free(void)
|
|||||||
/* int */
|
/* int */
|
||||||
AssertIntEQ(EVP_PKEY_CTX_free(ctx), WOLFSSL_SUCCESS);
|
AssertIntEQ(EVP_PKEY_CTX_free(ctx), WOLFSSL_SUCCESS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EVP_PKEY_free(pkey);
|
||||||
printf(resultFmt, passed);
|
printf(resultFmt, passed);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user