This is an archive of the discontinued LLVM Phabricator instance.

[clang][ASTReader] Fix memory leak while reading FriendTemplateDecls
ClosedPublic

Authored by kadircet on Feb 17 2022, 1:02 PM.

Details

Summary

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

Diff Detail

Event Timeline

kadircet requested review of this revision.Feb 17 2022, 1:02 PM
kadircet created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2022, 1:02 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sammccall accepted this revision.Feb 18 2022, 3:08 AM
This revision is now accepted and ready to land.Feb 18 2022, 3:08 AM