[all-commits] [llvm/llvm-project] e3dd82: [lldb] Don't leak LineSequence in PDB parsers

Raphael Isemann via All-commits all-commits at lists.llvm.org
Thu Apr 22 05:11:36 PDT 2021


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

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
    M lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

  Log Message:
  -----------
  [lldb] Don't leak LineSequence in PDB parsers

`InsertSequence` doesn't take ownership of the pointer so releasing this pointer
is just leaking memory.

Follow up to D100806 that was fixing other leak sanitizer test failures

Reviewed By: JDevlieghere

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




More information about the All-commits mailing list