Frank Bosmans created PROTON-2631:
-------------------------------------
Summary: Memory leak in ssl options
Key: PROTON-2631
URL: https://issues.apache.org/jira/browse/PROTON-2631
Project: Qpid Proton
Issue Type: Bug
Components: cpp-binding
Affects Versions: proton-c-0.37.0, proton-c-0.36.0
Environment: Windows
Reporter: Frank Bosmans
Attachments: 0001-Fix-for-ssl-options-memory-leak.patch
Whenever there is an exception throwed in the creation of the
ssl_client_options or ssl_server_options, *impl_* is not been cleaned up
correctly.
Example exceptions been thrown can be found in set_cred or set_trusted_ca_db or
set_client_verify_mode functions (in cpp\scr\ssl_options.cpp)
suggested fix as in the patch: put a try catch around it and clean up imp_ and
rethrow the exception.
To reproduce the leak just use the ssl example with invalid key path
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]