fixed some compiler warnings and leaks
This commit is contained in:
parent
5c51753913
commit
e1b6ba9f95
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue