[all-commits] [llvm/llvm-project] 0c58e9: [lldb] Fix memory leak in CommandObjectType

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Feb 16 09:05:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c58e9f4a474c60ed863e6a66c0e1202b4bd6c78
      https://github.com/llvm/llvm-project/commit/0c58e9f4a474c60ed863e6a66c0e1202b4bd6c78
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M lldb/source/Commands/CommandObjectType.cpp

  Log Message:
  -----------
  [lldb] Fix memory leak in CommandObjectType

Avoid leaking the ScriptAddOptions or SynthAddOptions when we return
early because of an empty type name.




More information about the All-commits mailing list