diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-05 22:05:31 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-05 22:05:31 +0000 |
commit | f878a84cc4d58035c0d622b988af6fb5f286f140 (patch) | |
tree | bd9a460c567f1a4a74e2895af0fcf86653e369e2 /llvm/unittests/Support | |
parent | 024eff1edafedb33359a54ce42b4d7d17a06c30f (diff) | |
download | llvm-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')
0 files changed, 0 insertions, 0 deletions