diff options
Diffstat (limited to 'src/lib/libcrypto/engine/eng_lib.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/eng_lib.c b/src/lib/libcrypto/engine/eng_lib.c index 18a6664645..126bc02296 100644 --- a/src/lib/libcrypto/engine/eng_lib.c +++ b/src/lib/libcrypto/engine/eng_lib.c | |||
@@ -65,7 +65,7 @@ ENGINE *ENGINE_new(void) | |||
65 | { | 65 | { |
66 | ENGINE *ret; | 66 | ENGINE *ret; |
67 | 67 | ||
68 | ret = (ENGINE *)OPENSSL_malloc(sizeof(ENGINE)); | 68 | ret = (ENGINE *)malloc(sizeof(ENGINE)); |
69 | if(ret == NULL) | 69 | if(ret == NULL) |
70 | { | 70 | { |
71 | ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE); | 71 | ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE); |
@@ -133,7 +133,7 @@ int engine_free_util(ENGINE *e, int locked) | |||
133 | if(e->destroy) | 133 | if(e->destroy) |
134 | e->destroy(e); | 134 | e->destroy(e); |
135 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ENGINE, e, &e->ex_data); | 135 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ENGINE, e, &e->ex_data); |
136 | OPENSSL_free(e); | 136 | free(e); |
137 | return 1; | 137 | return 1; |
138 | } | 138 | } |
139 | 139 | ||
@@ -158,7 +158,7 @@ static int int_cleanup_check(int create) | |||
158 | } | 158 | } |
159 | static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb) | 159 | static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb) |
160 | { | 160 | { |
161 | ENGINE_CLEANUP_ITEM *item = OPENSSL_malloc(sizeof( | 161 | ENGINE_CLEANUP_ITEM *item = malloc(sizeof( |
162 | ENGINE_CLEANUP_ITEM)); | 162 | ENGINE_CLEANUP_ITEM)); |
163 | if(!item) return NULL; | 163 | if(!item) return NULL; |
164 | item->cb = cb; | 164 | item->cb = cb; |
@@ -184,7 +184,7 @@ void engine_cleanup_add_last(ENGINE_CLEANUP_CB *cb) | |||
184 | static void engine_cleanup_cb_free(ENGINE_CLEANUP_ITEM *item) | 184 | static void engine_cleanup_cb_free(ENGINE_CLEANUP_ITEM *item) |
185 | { | 185 | { |
186 | (*(item->cb))(); | 186 | (*(item->cb))(); |
187 | OPENSSL_free(item); | 187 | free(item); |
188 | } | 188 | } |
189 | void ENGINE_cleanup(void) | 189 | void ENGINE_cleanup(void) |
190 | { | 190 | { |