Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cmake/patches/cpp_client_telemetry/cpp_client_telemetry.patch
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
{
LOG_ERROR("Unable to allocate memory to pack EventProperties");

--- a/lib/pal/posix/sysinfo_sources.cpp
+++ b/lib/pal/posix/sysinfo_sources.cpp
@@ -114,7 +114,8 @@
{
std::array<char, 128> buffer;
std::string result;
- std::shared_ptr<FILE> pipe(popen(cmd, "r"), pclose);
+ auto close_pipe = [](FILE* file) { pclose(file); };
+ std::unique_ptr<FILE, decltype(close_pipe)> pipe(popen(cmd, "r"), close_pipe);
if (!pipe)
{
// throw std::runtime_error("popen() failed!");

--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -7,7 +7,7 @@
Expand Down
Loading