[all-commits] [llvm/llvm-project] 977b1f: [clang][ASTReader] Fix memory leak while reading F...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Fri Feb 18 03:16:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 977b1f574fa18219fde5f709b906c79202ef1916
      https://github.com/llvm/llvm-project/commit/977b1f574fa18219fde5f709b906c79202ef1916
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M clang/lib/Serialization/ASTReaderDecl.cpp

  Log Message:
  -----------
  [clang][ASTReader] Fix memory leak while reading FriendTemplateDecls

Allocate on ASTContext, rather than just on heap, so that template
parameter lists are freed up.

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




More information about the All-commits mailing list