fixed some compiler warnings and leaks

This commit is contained in:
Ken Martin 2002-08-08 08:51:40 -04:00
parent 5c51753913
commit e1b6ba9f95
1 changed files with 2 additions and 0 deletions

View File

@ -248,11 +248,13 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& argsIn)
" test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);\n" " test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);\n"
" if (partial_match && strstr(test_name, arg) != NULL)\n" " if (partial_match && strstr(test_name, arg) != NULL)\n"
" {\n" " {\n"
" free(arg);\n"
" free(test_name);\n" " free(test_name);\n"
" return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 2, av + 2);\n" " return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 2, av + 2);\n"
" }\n" " }\n"
" else if (!partial_match && strcmp(test_name, arg) == 0)\n" " else if (!partial_match && strcmp(test_name, arg) == 0)\n"
" {\n" " {\n"
" free(arg);\n"
" free(test_name);\n" " free(test_name);\n"
" return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 1, av + 1);\n" " return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 1, av + 1);\n"
" }\n" " }\n"