mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 22:39:54 +01:00
Free EVP ctx pkey
This commit is contained in:
@@ -901,6 +901,8 @@ int wolfSSL_EVP_PKEY_CTX_free(WOLFSSL_EVP_PKEY_CTX *ctx)
|
||||
{
|
||||
if (ctx == NULL) return 0;
|
||||
WOLFSSL_ENTER("EVP_PKEY_CTX_free");
|
||||
if (ctx->pkey != NULL)
|
||||
wolfSSL_EVP_PKEY_free(ctx->pkey);
|
||||
XFREE(ctx, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user