aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorSebastian Pohlschmidt <pohly05@users.noreply.github.com>2015-11-13 16:07:11 -0500
committerJay Satiro <raysatiro@yahoo.com>2015-11-13 16:11:41 -0500
commitad2d51754573cef5f7ff1df2ee48591bdcfcdc99 (patch)
tree1f323d015b0ecfdb4c9c61d3c61c4048c6023059 /lib/vtls
parent1ee0aded89db8063572504098be42a0a28d00550 (diff)
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
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index ac4bd19be..57d945ab9 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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();
}
/*