This is an archive of the discontinued LLVM Phabricator instance.

Fix memory leak in TestClangASTContext.TestRecordHasFields
ClosedPublic

Authored by teemperor on Jan 22 2018, 10:56 AM.

Details

Summary

We can't use unique_ptr's here because we use those variables as out parameters to some functions. Discovered by the memory sanitizer.

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.Jan 22 2018, 10:56 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 22 2018, 10:58 AM
This revision was automatically updated to reflect the committed changes.