Automatically free up dynamically allocated public key methods when

and ENGINE is destroyed.
This commit is contained in:
Dr. Stephen Henson
2006-06-02 17:09:17 +00:00
parent 1892c8bf97
commit 7e5b06813d
5 changed files with 32 additions and 2 deletions

View 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)