commit | 1bc7b0a01ba744f871b8e60c8b78600d42586a70 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Sun Mar 03 16:48:39 2019 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Sun Mar 03 16:48:39 2019 +0300 |
tree | 8da39450985963593478b57609232c43a4be4159 | |
parent | 21d1f46c6f7ac62483fa259d62ca7f7728ef04d9 [diff] |
SSL: fixed potential leak on memory allocation errors. If ngx_pool_cleanup_add() fails, we have to clean just created SSL context manually, thus appropriate call added. Additionally, ngx_pool_cleanup_add() moved closer to ngx_ssl_create() in the ngx_http_ssl_module, to make sure there are no leaks due to intermediate code.