Skip to content

Commit 9b185dd

Browse files
committed
Fix bug
1 parent 969b9e1 commit 9b185dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux/CrashReportingLinux.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ std::vector<ModuleInfo> CrashReportingLinux::GetModules()
132132
moduleBaseAddresses[path] = baseAddress;
133133
}
134134

135-
modules.push_back(ModuleInfo{ start, end, baseAddress, std::move(path), ElfBuildId(path.data())});
135+
auto buildId = ElfBuildId(path.data());
136+
modules.push_back(ModuleInfo{ start, end, baseAddress, std::move(path), std::move(buildId) });
136137
}
137138

138139
return modules;

0 commit comments

Comments
 (0)