BUG/MINOR: ssl: fix potential memory leak in ssl_sock_load_dh_params()

Valgrind reports that the memory allocated in ssl_get_dh_1024() was leaking. Upon further inspection of openssl code, it seems that SSL_CTX_set_tmp_dh makes a copy of the data, so calling DH_free afterwards makes sense.
(cherry picked from commit 0ea4c23ca754c3e6c005b67403a0619ca17d4587)
(cherry picked from commit 6942027da47e1d4c886bcf75d55f3fcb1a67561e)
1 file changed