summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:17:59 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:17:59 (GMT)
commit99fa3376162a682f46feb6aa4c8524435fb357a4 (patch)
tree38b4d66cd69c07718fe0e2d31a0afc54ab8e55a0 /Source/cmSetCommand.cxx
parentfdbfd6fc6ea1469d6cd07c3fbcca902ab8ad5e39 (diff)
downloadCMake-99fa3376162a682f46feb6aa4c8524435fb357a4.zip
CMake-99fa3376162a682f46feb6aa4c8524435fb357a4.tar.gz
CMake-99fa3376162a682f46feb6aa4c8524435fb357a4.tar.bz2
BUG: Remove memory leak
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())