summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index 28941b6..548cec4 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -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())