aboutsummaryrefslogtreecommitdiff
path: root/drivers/builtin_openssl2/crypto/engine/eng_dyn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/builtin_openssl2/crypto/engine/eng_dyn.c')
-rw-r--r--drivers/builtin_openssl2/crypto/engine/eng_dyn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/builtin_openssl2/crypto/engine/eng_dyn.c b/drivers/builtin_openssl2/crypto/engine/eng_dyn.c
index 3169b09ad..40f30e9d5 100644
--- a/drivers/builtin_openssl2/crypto/engine/eng_dyn.c
+++ b/drivers/builtin_openssl2/crypto/engine/eng_dyn.c
@@ -243,8 +243,10 @@ static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx)
* If we lost the race to set the context, c is non-NULL and *ctx is the
* context of the thread that won.
*/
- if (c)
+ if (c) {
+ sk_OPENSSL_STRING_free(c->dirs);
OPENSSL_free(c);
+ }
return 1;
}