[Lldb-commits] [PATCH] D100795: [lldb] Fix RichManglingContext::FromCxxMethodName() leak

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 19 16:03:17 PDT 2021


shafik added inline comments.


================
Comment at: lldb/source/Core/RichManglingContext.cpp:24
+  std::free(m_ipd_buf);
+  if (m_cxx_method_parser.hasValue()) {
+    assert(m_provider == PluginCxxLanguage);
----------------
This code is duplicated from `ResetProvider(...)` we should factor it out and call it from both places, so we if we ever change this code in the future we don't have to remember to fix both places.


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