[all-commits] [llvm/llvm-project] 1299bb: [TextAPI] Fix memory leak in SymbolSet. (#150589)

Lang Hames via All-commits all-commits at lists.llvm.org
Fri Jul 25 16:32:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1299bba4045d59f02a6d56a156e91a0a7349f2b8
      https://github.com/llvm/llvm-project/commit/1299bba4045d59f02a6d56a156e91a0a7349f2b8
  Author: Lang Hames <lhames at gmail.com>
  Date:   2025-07-26 (Sat, 26 Jul 2025)

  Changed paths:
    M llvm/include/llvm/TextAPI/SymbolSet.h
    M llvm/lib/TextAPI/SymbolSet.cpp
    A llvm/test/tools/llvm-readtapi/many-targets.test

  Log Message:
  -----------
  [TextAPI] Fix memory leak in SymbolSet. (#150589)

The SymbolSet class bump-ptr-allocates Symbol objects, but Symbol has a
non-trivial destructor (since Symbol's Targets member is a SmallVector):
we need to explicitly destroy the Symbol objects to ensure that no
memory is leaked.

rdar://154778728



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list