diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
-rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index a19e058fca..228392f1e6 100644 --- a/src/lib/libcrypto/asn1/ameth_lib.c +++ b/src/lib/libcrypto/asn1/ameth_lib.c | |||
@@ -289,7 +289,7 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, | |||
289 | const char *pem_str, const char *info) | 289 | const char *pem_str, const char *info) |
290 | { | 290 | { |
291 | EVP_PKEY_ASN1_METHOD *ameth; | 291 | EVP_PKEY_ASN1_METHOD *ameth; |
292 | ameth = OPENSSL_malloc(sizeof(EVP_PKEY_ASN1_METHOD)); | 292 | ameth = malloc(sizeof(EVP_PKEY_ASN1_METHOD)); |
293 | if (!ameth) | 293 | if (!ameth) |
294 | return NULL; | 294 | return NULL; |
295 | 295 | ||
@@ -393,10 +393,10 @@ void EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) | |||
393 | if (ameth && (ameth->pkey_flags & ASN1_PKEY_DYNAMIC)) | 393 | if (ameth && (ameth->pkey_flags & ASN1_PKEY_DYNAMIC)) |
394 | { | 394 | { |
395 | if (ameth->pem_str) | 395 | if (ameth->pem_str) |
396 | OPENSSL_free(ameth->pem_str); | 396 | free(ameth->pem_str); |
397 | if (ameth->info) | 397 | if (ameth->info) |
398 | OPENSSL_free(ameth->info); | 398 | free(ameth->info); |
399 | OPENSSL_free(ameth); | 399 | free(ameth); |
400 | } | 400 | } |
401 | } | 401 | } |
402 | 402 | ||