[all-commits] [llvm/llvm-project] 56349e: Fix for memory leak reported by Valgrind

Maksym Wezdecki via All-commits all-commits at lists.llvm.org
Tue Mar 16 11:20:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56349e8b6d85621d4d95efe27716b3f6974d4324
      https://github.com/llvm/llvm-project/commit/56349e8b6d85621d4d95efe27716b3f6974d4324
  Author: Maksym Wezdecki <maksym.wezdecki at amd.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

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

  Log Message:
  -----------
  Fix for memory leak reported by Valgrind

If llvm so lib is dlopened and dlclosed several times, then memory leak can be observed, reported by Valgrind.

This patch fixes the issue.

Reviewed By: lattner, dblaikie

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




More information about the All-commits mailing list