mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
Merge branch 'upstream-cppdap' into update-cppdap
# By cppdap Upstream * upstream-cppdap: cppdap 2023-08-17 (cc2f2058)
This commit is contained in:
commit
90df1e5da4
7 files changed
+103
-36
No files matched your search
@@ -108,7 +108,6 @@ class dap::Socket::Shared : public dap::ReaderWriter {
|
||||
return out;
|
||||
}
|
||||
|
||||
freeaddrinfo(info);
|
||||
term();
|
||||
return nullptr;
|
||||
}
|
||||
@@ -117,7 +116,9 @@ class dap::Socket::Shared : public dap::ReaderWriter {
|
||||
Shared(addrinfo* info, SOCKET socket) : info(info), s(socket) {}
|
||||
|
||||
~Shared() {
|
||||
freeaddrinfo(info);
|
||||
if (info) {
|
||||
freeaddrinfo(info);
|
||||
}
|
||||
close();
|
||||
term();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user