diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 28941b6a2b..548cec4595 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -38,6 +38,7 @@ bool cmSetCommand::InitialPass(std::vector const& args) // what is the current value if any const char *currValue = getenv(varName); + delete [] varName; // will it be set to something, then set it if (args.size() > 1 && args[1].size())