[Lldb-commits] [PATCH] D100795: [lldb] Fix RichManglingContext::FromCxxMethodName() leak
    Jonas Devlieghere via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Tue Apr 20 16:10:53 PDT 2021
    
    
  
JDevlieghere added inline comments.
================
Comment at: lldb/source/Core/RichManglingContext.cpp:23
+RichManglingContext::~RichManglingContext() {
+  std::free(m_ipd_buf);
+  ResetCxxMethodParser();
----------------
Instead of managing memory by hand, can we use a `unique_ptr<char[]>` instead?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100795/new/
https://reviews.llvm.org/D100795
    
    
More information about the lldb-commits
mailing list