diff options
Diffstat (limited to 'src/lib/libcrypto/store/str_meth.c')
| -rw-r--r-- | src/lib/libcrypto/store/str_meth.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 62 | 62 | ||
| 63 | STORE_METHOD *STORE_create_method(char *name) | 63 | STORE_METHOD *STORE_create_method(char *name) |
| 64 | { | 64 | { |
| 65 | STORE_METHOD *store_method = (STORE_METHOD *)OPENSSL_malloc(sizeof(STORE_METHOD)); | 65 | STORE_METHOD *store_method = (STORE_METHOD *)malloc(sizeof(STORE_METHOD)); |
| 66 | 66 | ||
| 67 | if (store_method) | 67 | if (store_method) |
| 68 | { | 68 | { |
| @@ -78,9 +78,9 @@ STORE_METHOD *STORE_create_method(char *name) | |||
| 78 | void STORE_destroy_method(STORE_METHOD *store_method) | 78 | void STORE_destroy_method(STORE_METHOD *store_method) |
| 79 | { | 79 | { |
| 80 | if (!store_method) return; | 80 | if (!store_method) return; |
| 81 | OPENSSL_free(store_method->name); | 81 | free(store_method->name); |
| 82 | store_method->name = NULL; | 82 | store_method->name = NULL; |
| 83 | OPENSSL_free(store_method); | 83 | free(store_method); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f) | 86 | int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f) |
