[all-commits] [llvm/llvm-project] 412b39: [BPI] Fix memory leak reported by sanitizer bots

ebrevnov via All-commits all-commits at lists.llvm.org
Tue Jul 28 05:54:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 412b3932c6612f4a60bfa8e0811cf6ba1bd3e0e8
      https://github.com/llvm/llvm-project/commit/412b3932c6612f4a60bfa8e0811cf6ba1bd3e0e8
  Author: Evgeniy Brevnov <ybrevnov at azul.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp

  Log Message:
  -----------
  [BPI] Fix memory leak reported by sanitizer bots

There is a silly mistake where release() is used instead of reset() for free resources of unique pointer.

Reviewed By: ebrevnov

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




More information about the All-commits mailing list