diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index 8652e938bd..771b4f9690 100644 --- a/src/lib/libcrypto/asn1/ameth_lib.c +++ b/src/lib/libcrypto/asn1/ameth_lib.c | |||
| @@ -380,10 +380,8 @@ void | |||
| 380 | EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) | 380 | EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) |
| 381 | { | 381 | { |
| 382 | if (ameth && (ameth->pkey_flags & ASN1_PKEY_DYNAMIC)) { | 382 | if (ameth && (ameth->pkey_flags & ASN1_PKEY_DYNAMIC)) { |
| 383 | if (ameth->pem_str) | 383 | free(ameth->pem_str); |
| 384 | free(ameth->pem_str); | 384 | free(ameth->info); |
| 385 | if (ameth->info) | ||
| 386 | free(ameth->info); | ||
| 387 | free(ameth); | 385 | free(ameth); |
| 388 | } | 386 | } |
| 389 | } | 387 | } |
