[llvm] [Memprof] Fixes memory leak in MemInfoBlock histogram. (PR #96834)

Matthew Weingarten via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 17:18:03 PDT 2024


================
@@ -633,6 +633,8 @@ Error RawMemProfReader::symbolizeAndFilterStackFrames(
   // Drop the entries where the callstack is empty.
   for (const uint64_t Id : EntriesToErase) {
     StackMap.erase(Id);
+    if(CallstackProfileData[Id].AccessHistogramSize > 0)
----------------
mattweingarten wrote:

Unless we don't mind that they are not the exact same file?

https://github.com/llvm/llvm-project/pull/96834


More information about the llvm-commits mailing list