summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_dyn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine/eng_dyn.c')
-rw-r--r--src/lib/libcrypto/engine/eng_dyn.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/libcrypto/engine/eng_dyn.c b/src/lib/libcrypto/engine/eng_dyn.c
index f59d768350..e2de4603ee 100644
--- a/src/lib/libcrypto/engine/eng_dyn.c
+++ b/src/lib/libcrypto/engine/eng_dyn.c
@@ -169,10 +169,8 @@ static void dynamic_data_ctx_free_func(void *parent, void *ptr,
169 dynamic_data_ctx *ctx = (dynamic_data_ctx *)ptr; 169 dynamic_data_ctx *ctx = (dynamic_data_ctx *)ptr;
170 if(ctx->dynamic_dso) 170 if(ctx->dynamic_dso)
171 DSO_free(ctx->dynamic_dso); 171 DSO_free(ctx->dynamic_dso);
172 if(ctx->DYNAMIC_LIBNAME) 172 free((void *)ctx->DYNAMIC_LIBNAME);
173 free((void*)ctx->DYNAMIC_LIBNAME); 173 free((void *)ctx->engine_id);
174 if(ctx->engine_id)
175 free((void*)ctx->engine_id);
176 if(ctx->dirs) 174 if(ctx->dirs)
177 sk_OPENSSL_STRING_pop_free(ctx->dirs, int_free_str); 175 sk_OPENSSL_STRING_pop_free(ctx->dirs, int_free_str);
178 free(ctx); 176 free(ctx);
@@ -335,8 +333,7 @@ static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
335 /* a NULL 'p' or a string of zero-length is the same thing */ 333 /* a NULL 'p' or a string of zero-length is the same thing */
336 if(p && (strlen((const char *)p) < 1)) 334 if(p && (strlen((const char *)p) < 1))
337 p = NULL; 335 p = NULL;
338 if(ctx->DYNAMIC_LIBNAME) 336 free((void *)ctx->DYNAMIC_LIBNAME);
339 free((void*)ctx->DYNAMIC_LIBNAME);
340 if(p) 337 if(p)
341 ctx->DYNAMIC_LIBNAME = BUF_strdup(p); 338 ctx->DYNAMIC_LIBNAME = BUF_strdup(p);
342 else 339 else
@@ -349,8 +346,7 @@ static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
349 /* a NULL 'p' or a string of zero-length is the same thing */ 346 /* a NULL 'p' or a string of zero-length is the same thing */
350 if(p && (strlen((const char *)p) < 1)) 347 if(p && (strlen((const char *)p) < 1))
351 p = NULL; 348 p = NULL;
352 if(ctx->engine_id) 349 free((void *)ctx->engine_id);
353 free((void*)ctx->engine_id);
354 if(p) 350 if(p)
355 ctx->engine_id = BUF_strdup(p); 351 ctx->engine_id = BUF_strdup(p);
356 else 352 else