diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 66ee397d86..dfc8ace27b 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c | |||
@@ -77,7 +77,7 @@ typedef struct | |||
77 | static int pkey_ec_init(EVP_PKEY_CTX *ctx) | 77 | static int pkey_ec_init(EVP_PKEY_CTX *ctx) |
78 | { | 78 | { |
79 | EC_PKEY_CTX *dctx; | 79 | EC_PKEY_CTX *dctx; |
80 | dctx = OPENSSL_malloc(sizeof(EC_PKEY_CTX)); | 80 | dctx = malloc(sizeof(EC_PKEY_CTX)); |
81 | if (!dctx) | 81 | if (!dctx) |
82 | return 0; | 82 | return 0; |
83 | dctx->gen_group = NULL; | 83 | dctx->gen_group = NULL; |
@@ -112,7 +112,7 @@ static void pkey_ec_cleanup(EVP_PKEY_CTX *ctx) | |||
112 | { | 112 | { |
113 | if (dctx->gen_group) | 113 | if (dctx->gen_group) |
114 | EC_GROUP_free(dctx->gen_group); | 114 | EC_GROUP_free(dctx->gen_group); |
115 | OPENSSL_free(dctx); | 115 | free(dctx); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||