diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-03-21 21:34:05 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-03-21 21:34:05 +0000 |
| commit | 4e5a65fc83f8e21d501af28644fcf35f982ee33f (patch) | |
| tree | 4ca40b01ec6986a10e954bb92df0d5703f713664 | |
| parent | 61bb2328eb66bdf7bc6a482be530aea3d9cbadfe (diff) | |
| download | bcm5719-llvm-4e5a65fc83f8e21d501af28644fcf35f982ee33f.tar.gz bcm5719-llvm-4e5a65fc83f8e21d501af28644fcf35f982ee33f.zip | |
[c-index-test] Fix memory leak in c-index-test tool.
llvm-svn: 298441
| -rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 1 |
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 dbd40b86b74..0dde4c7cc76 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); } } } |

