summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/store/str_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/store/str_mem.c')
-rw-r--r--src/lib/libcrypto/store/str_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/store/str_mem.c b/src/lib/libcrypto/store/str_mem.c
index 8ac4f7e55c..997e60fe93 100644
--- a/src/lib/libcrypto/store/str_mem.c
+++ b/src/lib/libcrypto/store/str_mem.c
@@ -222,7 +222,7 @@ static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
222 OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) 222 OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[])
223 { 223 {
224 struct mem_ctx_st *context = 224 struct mem_ctx_st *context =
225 (struct mem_ctx_st *)OPENSSL_malloc(sizeof(struct mem_ctx_st)); 225 (struct mem_ctx_st *)malloc(sizeof(struct mem_ctx_st));
226 void *attribute_context = NULL; 226 void *attribute_context = NULL;
227 STORE_ATTR_INFO *attrs = NULL; 227 STORE_ATTR_INFO *attrs = NULL;
228 228
@@ -336,7 +336,7 @@ static int mem_list_end(STORE *s, void *handle)
336 } 336 }
337 if (context && context->search_attributes) 337 if (context && context->search_attributes)
338 sk_STORE_ATTR_INFO_free(context->search_attributes); 338 sk_STORE_ATTR_INFO_free(context->search_attributes);
339 if (context) OPENSSL_free(context); 339 if (context) free(context);
340 return 1; 340 return 1;
341 } 341 }
342static int mem_list_endp(STORE *s, void *handle) 342static int mem_list_endp(STORE *s, void *handle)