BUG: Remove memory leak

This commit is contained in:
Andy Cedilnik 2005-06-03 14:17:59 -04:00
parent fdbfd6fc6e
commit 99fa337616
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ bool cmSetCommand::InitialPass(std::vector<std::string> 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())