From bddb7c686e3d1aeb156722adc64b6c35ae720f87 Mon Sep 17 00:00:00 2001 From: beck <> Date: Thu, 17 Apr 2014 13:37:50 +0000 Subject: Change library to use intrinsic memory allocation functions instead of OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free --- src/lib/libcrypto/store/str_meth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/store/str_meth.c') diff --git a/src/lib/libcrypto/store/str_meth.c b/src/lib/libcrypto/store/str_meth.c index a46de03a26..8944824618 100644 --- a/src/lib/libcrypto/store/str_meth.c +++ b/src/lib/libcrypto/store/str_meth.c @@ -62,7 +62,7 @@ STORE_METHOD *STORE_create_method(char *name) { - STORE_METHOD *store_method = (STORE_METHOD *)OPENSSL_malloc(sizeof(STORE_METHOD)); + STORE_METHOD *store_method = (STORE_METHOD *)malloc(sizeof(STORE_METHOD)); if (store_method) { @@ -78,9 +78,9 @@ STORE_METHOD *STORE_create_method(char *name) void STORE_destroy_method(STORE_METHOD *store_method) { if (!store_method) return; - OPENSSL_free(store_method->name); + free(store_method->name); store_method->name = NULL; - OPENSSL_free(store_method); + free(store_method); } int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f) -- cgit v1.2.3-55-g6feb