summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/engine/eng_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/crypto/engine/eng_lib.c')
-rw-r--r--lib/libssl/src/crypto/engine/eng_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/engine/eng_lib.c b/lib/libssl/src/crypto/engine/eng_lib.c
index 5815b867f49..18a66646458 100644
--- a/lib/libssl/src/crypto/engine/eng_lib.c
+++ b/lib/libssl/src/crypto/engine/eng_lib.c
@@ -125,6 +125,9 @@ int engine_free_util(ENGINE *e, int locked)
abort();
}
#endif
+ /* Free up any dynamically allocated public key methods */
+ engine_pkey_meths_free(e);
+ engine_pkey_asn1_meths_free(e);
/* Give the ENGINE a chance to do any structural cleanup corresponding
* to allocation it did in its constructor (eg. unload error strings) */
if(e->destroy)