diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-08 12:51:40 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-08 12:51:40 (GMT) |
commit | e1b6ba9f95d14d9d45f40f17cbdd21aabe3c524a (patch) | |
tree | 51972cfc9aadc49b562a6ea6768e32cfe4a4a513 /Source/cmCreateTestSourceList.cxx | |
parent | 5c517539136aa6309f35fec66213d6b1fc36acce (diff) | |
download | CMake-e1b6ba9f95d14d9d45f40f17cbdd21aabe3c524a.zip CMake-e1b6ba9f95d14d9d45f40f17cbdd21aabe3c524a.tar.gz CMake-e1b6ba9f95d14d9d45f40f17cbdd21aabe3c524a.tar.bz2 |
fixed some compiler warnings and leaks
Diffstat (limited to 'Source/cmCreateTestSourceList.cxx')
-rw-r--r-- | Source/cmCreateTestSourceList.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx index 5fea91c..440dbd9 100644 --- a/Source/cmCreateTestSourceList.cxx +++ b/Source/cmCreateTestSourceList.cxx @@ -248,11 +248,13 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& argsIn) " test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);\n" " if (partial_match && strstr(test_name, arg) != NULL)\n" " {\n" + " free(arg);\n" " free(test_name);\n" " return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 2, av + 2);\n" " }\n" " else if (!partial_match && strcmp(test_name, arg) == 0)\n" " {\n" + " free(arg);\n" " free(test_name);\n" " return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 1, av + 1);\n" " }\n" |