]> granicus.if.org Git - clang/commit
Fix two test-only leaks found by LSan.
authorNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 04:26:18 +0000 (04:26 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 24 Apr 2014 04:26:18 +0000 (04:26 +0000)
commit07aa87612b01a9672e7703a99819c23416780a30
tree2a8e9c55be26ecc4a3d3f7ebffda37e7c1dc6440
parent29c13d16f0d3a3a287a2b549b107e90085c0a458
Fix two test-only leaks found by LSan.

The result of getBufferForFile() must be freed.
(Should we change functions that expect the caller to assume ownership so
that they return unique_ptrs instead? Then the type system makes sure we get
this right.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207074 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Tooling/RefactoringTest.cpp
unittests/Tooling/RewriterTestContext.h