aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-06-05 22:05:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-06-05 22:05:31 +0000
commitf878a84cc4d58035c0d622b988af6fb5f286f140 (patch)
treebd9a460c567f1a4a74e2895af0fcf86653e369e2 /llvm/unittests/Support/ProgramTest.cpp
parent024eff1edafedb33359a54ce42b4d7d17a06c30f (diff)
downloadllvm-f878a84cc4d58035c0d622b988af6fb5f286f140.zip
llvm-f878a84cc4d58035c0d622b988af6fb5f286f140.tar.gz
llvm-f878a84cc4d58035c0d622b988af6fb5f286f140.tar.bz2
Fix memory leak exposed by r304726.
When giving a ContentCache a null buffer, ignore the DoNotFree flag rather than inheriting it onto whatever buffer we end up using for the file. Also ensure that the main buffer is properly destroyed. llvm-svn: 304740
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions