diff options
Diffstat (limited to 'src/lib/libcrypto/evp/p_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/p_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index e26ccd0d08..7a9da3487a 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c | |||
@@ -183,7 +183,7 @@ EVP_PKEY *EVP_PKEY_new(void) | |||
183 | { | 183 | { |
184 | EVP_PKEY *ret; | 184 | EVP_PKEY *ret; |
185 | 185 | ||
186 | ret=(EVP_PKEY *)OPENSSL_malloc(sizeof(EVP_PKEY)); | 186 | ret=(EVP_PKEY *)malloc(sizeof(EVP_PKEY)); |
187 | if (ret == NULL) | 187 | if (ret == NULL) |
188 | { | 188 | { |
189 | EVPerr(EVP_F_EVP_PKEY_NEW,ERR_R_MALLOC_FAILURE); | 189 | EVPerr(EVP_F_EVP_PKEY_NEW,ERR_R_MALLOC_FAILURE); |
@@ -405,7 +405,7 @@ void EVP_PKEY_free(EVP_PKEY *x) | |||
405 | EVP_PKEY_free_it(x); | 405 | EVP_PKEY_free_it(x); |
406 | if (x->attributes) | 406 | if (x->attributes) |
407 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); | 407 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); |
408 | OPENSSL_free(x); | 408 | free(x); |
409 | } | 409 | } |
410 | 410 | ||
411 | static void EVP_PKEY_free_it(EVP_PKEY *x) | 411 | static void EVP_PKEY_free_it(EVP_PKEY *x) |