diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-11-14 23:51:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-11-14 23:51:37 +0000 |
commit | ec9b50d961a00ff603b49fbb71f56dbc0fa62b3a (patch) | |
tree | 6b7a91d27655b7e755272f1a6b3758555f4f4956 /llvm/lib/Support/Valgrind.cpp | |
parent | 02faa354770577d1327a03d9ffd1f9dbc022a1f4 (diff) | |
download | llvm-ec9b50d961a00ff603b49fbb71f56dbc0fa62b3a.zip llvm-ec9b50d961a00ff603b49fbb71f56dbc0fa62b3a.tar.gz llvm-ec9b50d961a00ff603b49fbb71f56dbc0fa62b3a.tar.bz2 |
Fix potential memory leak for clients of clang_getOverriddenCursors(). If the number of overriden cursors is 0, do not allocate an array of CXCursors. This fixes a memory leak in c-index-test, and clients who use this API in a similar way.
llvm-svn: 144595
Diffstat (limited to 'llvm/lib/Support/Valgrind.cpp')
0 files changed, 0 insertions, 0 deletions