Automatically free up dynamically allocated public key methods when
[openssl.git] / crypto / engine / eng_lib.c
index 5815b867f4937fe5d484f38bb3d666f6b626e367..6ee8a90c158c98d5c4229449f3a5918935f1f887 100644 (file)
@@ -125,6 +125,8 @@ int engine_free_util(ENGINE *e, int locked)
                abort();
                }
 #endif
+       /* Free up any dynamically allocated public key methods */
+       engine_pkey_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)