[all-commits] [llvm/llvm-project] eb5e11: [lldb] Fix RichManglingContext::FromCxxMethodName(...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Wed Apr 21 12:35:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb5e11f460b1bcace77127de00b8bd15d409ea3a
      https://github.com/llvm/llvm-project/commit/eb5e11f460b1bcace77127de00b8bd15d409ea3a
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M lldb/include/lldb/Core/RichManglingContext.h
    M lldb/source/Core/RichManglingContext.cpp

  Log Message:
  -----------
  [lldb] Fix RichManglingContext::FromCxxMethodName() leak

`RichManglingContext::FromCxxMethodName` allocates a m_cxx_method_parser, but never deletes it.

This fixes a `-DLLVM_USE_SANITIZER=Leaks` failure.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D100795




More information about the All-commits mailing list