aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-03-21 21:34:05 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-03-21 21:34:05 +0000
commit4e5a65fc83f8e21d501af28644fcf35f982ee33f (patch)
tree4ca40b01ec6986a10e954bb92df0d5703f713664 /clang/tools/c-index-test/c-index-test.c
parent61bb2328eb66bdf7bc6a482be530aea3d9cbadfe (diff)
downloadllvm-4e5a65fc83f8e21d501af28644fcf35f982ee33f.zip
llvm-4e5a65fc83f8e21d501af28644fcf35f982ee33f.tar.gz
llvm-4e5a65fc83f8e21d501af28644fcf35f982ee33f.tar.bz2
[c-index-test] Fix memory leak in c-index-test tool.
llvm-svn: 298441
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index dbd40b8..0dde4c7 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -717,6 +717,7 @@ static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) {
CXType Underlying = clang_getTypedefDeclUnderlyingType(Referenced);
CXString S = clang_getTypeSpelling(Underlying);
printf(" (Transparent: %s)", clang_getCString(S));
+ clang_disposeString(S);
}
}
}