Skip to content
Snippets Groups Projects
Commit 66cb0570 authored by Gemma Guest's avatar Gemma Guest
Browse files

Re #19773 Revert cppcheck memory leak fix

This will be investigated further as part of issue #19952.
parent b5266122
No related branches found
No related tags found
No related merge requests found
......@@ -164,8 +164,10 @@ std::string CatalogDownloadDataFiles::doDownloadandSavetoLocalDrive(
nullptr, certificateHandler, context);
// Session takes ownership of socket
Poco::Net::SecureStreamSocket socket(context);
Poco::Net::HTTPSClientSession session(socket);
Poco::Net::SecureStreamSocket *socket =
new Poco::Net::SecureStreamSocket(context);
Poco::Net::HTTPSClientSession session(*socket);
socket = nullptr;
session.setHost(uri.getHost());
session.setPort(uri.getPort());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment