[all-commits] [llvm/llvm-project] 5daf20: [BOLT] Fix memory leak in BinarySection (#82520)

Maksim Panchenko via All-commits all-commits at lists.llvm.org
Wed Feb 21 11:54:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5daf2001a1e4d71ce1273a1e7e31cf6e6ac37c10
      https://github.com/llvm/llvm-project/commit/5daf2001a1e4d71ce1273a1e7e31cf6e6ac37c10
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2024-02-21 (Wed, 21 Feb 2024)

  Changed paths:
    M bolt/include/bolt/Core/BinarySection.h
    M bolt/lib/Core/BinarySection.cpp
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/unittests/Core/BinaryContext.cpp

  Log Message:
  -----------
  [BOLT] Fix memory leak in BinarySection (#82520)

The change in #80950 exposed a memory leak in BinarySection. Let
BinarySection manage memory passed via updateContents() unless a valid
SectionID is set indicating that the contents are managed by JITLink.



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