diff options
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-09-01 19:56:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-09-02 15:15:11 (GMT) |
commit | f47393c66bb1810a9916fa755bc5830fb9d24d63 (patch) | |
tree | ff2d5909429735a90581efc3f4e4221fa5f89e36 /Source/CTest/cmParsePHPCoverage.cxx | |
parent | 83ce7c4d3cbc8b4277e815f861456ea6f7ec18e3 (diff) | |
download | CMake-f47393c66bb1810a9916fa755bc5830fb9d24d63.zip CMake-f47393c66bb1810a9916fa755bc5830fb9d24d63.tar.gz CMake-f47393c66bb1810a9916fa755bc5830fb9d24d63.tar.bz2 |
CTest: Fix memory leaks on error
Credit goes to "cppcheck".
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Diffstat (limited to 'Source/CTest/cmParsePHPCoverage.cxx')
-rw-r--r-- | Source/CTest/cmParsePHPCoverage.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CTest/cmParsePHPCoverage.cxx b/Source/CTest/cmParsePHPCoverage.cxx index 32c1ec1..593b2d1 100644 --- a/Source/CTest/cmParsePHPCoverage.cxx +++ b/Source/CTest/cmParsePHPCoverage.cxx @@ -159,6 +159,7 @@ bool cmParsePHPCoverage::ReadFileInformation(std::ifstream& in) // read open quote if(in.get(c) && c != '"') { + delete[] s; return false; } // read the string data |