]> granicus.if.org Git - clang/commit
[libclang] Fix the mismatched delete operator for ExprEvalResult
authorAlex Lorenz <arphaman@gmail.com>
Tue, 8 Jan 2019 23:28:37 +0000 (23:28 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 8 Jan 2019 23:28:37 +0000 (23:28 +0000)
commitc3ada736c34d204768d2b6a303a191401713a958
tree88b0bd0792a4ea847be6bf1daae8a3d3e164ec27
parent3aac3eb43a803d26eb5653d6bee6d437c1adfc85
[libclang] Fix the mismatched delete operator for ExprEvalResult

The '.stringVal' field in ExprEvalResult is allocated using new[],
but was freed using a regular delete. That caused memory leaks in
the test from r350666.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350680 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp