aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Valgrind.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-11-14 23:51:37 +0000
committerTed Kremenek <kremenek@apple.com>2011-11-14 23:51:37 +0000
commitec9b50d961a00ff603b49fbb71f56dbc0fa62b3a (patch)
tree6b7a91d27655b7e755272f1a6b3758555f4f4956 /llvm/lib/Support/Valgrind.cpp
parent02faa354770577d1327a03d9ffd1f9dbc022a1f4 (diff)
downloadllvm-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