[all-commits] [llvm/llvm-project] ae209a: Fix memory leak in MicrosoftDemangleNodes's Node::...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Thu Apr 22 09:45:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae209aa9ecd717c0a73eebdb8ff16c5871b6f62f
      https://github.com/llvm/llvm-project/commit/ae209aa9ecd717c0a73eebdb8ff16c5871b6f62f
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M llvm/lib/Demangle/MicrosoftDemangleNodes.cpp

  Log Message:
  -----------
  Fix memory leak in MicrosoftDemangleNodes's Node::toString

The buffer we turn into a std::string here is malloc'd and should be
free'd before we return from this function.

Follow up to LLDB leak fixes such as D100806.

Reviewed By: mstorsjo, rupprecht, MaskRay

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




More information about the All-commits mailing list