[all-commits] [llvm/llvm-project] db79f4: Free memory leak on duplicate interface registration

Mehdi Amini via All-commits all-commits at lists.llvm.org
Sat Oct 2 09:41:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db79f4a2e9c97039de8fd86012c06c2681cf9ad9
      https://github.com/llvm/llvm-project/commit/db79f4a2e9c97039de8fd86012c06c2681cf9ad9
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-10-02 (Sat, 02 Oct 2021)

  Changed paths:
    M mlir/lib/Support/InterfaceSupport.cpp
    M mlir/unittests/IR/InterfaceAttachmentTest.cpp

  Log Message:
  -----------
  Free memory leak on duplicate interface registration

I guess this is why we should use unique_ptr as much as possible.
Also fix the InterfaceAttachmentTest.cpp test.

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




More information about the All-commits mailing list