Skip to content
Snippets Groups Projects
Commit fd1f9c23 authored by Samuel Jackson's avatar Samuel Jackson
Browse files

Fix cppcheck error

parent a89482d1
No related branches found
No related tags found
No related merge requests found
......@@ -164,10 +164,8 @@ std::string CatalogDownloadDataFiles::doDownloadandSavetoLocalDrive(
nullptr, certificateHandler, context);
// Session takes ownership of socket
Poco::Net::SecureStreamSocket *socket =
new Poco::Net::SecureStreamSocket(context);
auto socket = Kernel::make_unique<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