openssl: Free modules on cleanup

Curl_ossl_init calls OPENSSL_load_builtin_modules() but
Curl_ossl_cleanup doesn't make a call to free these modules.

Bug: https://github.com/bagder/curl/issues/526
This commit is contained in:
Sebastian Pohlschmidt 2015-11-13 16:07:11 -05:00 committed by Jay Satiro
parent 1ee0aded89
commit ad2d517545
1 changed files with 3 additions and 0 deletions

View File

@ -746,6 +746,9 @@ void Curl_ossl_cleanup(void)
#else
ERR_remove_state(0);
#endif
/* Free all memory allocated by all configuration modules */
CONF_modules_free();
}
/*