commit | 971cb622e412829dd6bf15467f37d458055e1978 | [log] [tgz] |
---|---|---|
author | Roberto Guimaraes <rguimaraes@fastly.com> | Sat Jun 11 15:58:10 2016 -0700 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jun 30 15:05:07 2016 +0200 |
tree | 4055efeb8f60934a182379943b9fe1fb318e97a1 | |
parent | cba3bd6e5ce9b0be83c701c3c7a103d01d5b516d [diff] |
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)