[all-commits] [llvm/llvm-project] 3f954f: Correct mismatched allocation/deallocation calls

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed May 15 09:36:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f954f575156bce8ac81d6b4d94de443786befed
      https://github.com/llvm/llvm-project/commit/3f954f575156bce8ac81d6b4d94de443786befed
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-05-15 (Wed, 15 May 2024)

  Changed paths:
    M llvm/lib/Support/MemoryBuffer.cpp

  Log Message:
  -----------
  Correct mismatched allocation/deallocation calls

This amends dceaa0f4491ebe30c0b0f1bc7fa5ec365b60ced6 because ASAN
caught an issue where the allocation and deallocation were not properly
paired: https://lab.llvm.org/buildbot/#/builders/239/builds/7001

Use malloc and free throughout this file to ensure that all kinds of
memory buffers use the proper pairing.



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