diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-03 18:17:59 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-03 18:17:59 (GMT) |
commit | 99fa3376162a682f46feb6aa4c8524435fb357a4 (patch) | |
tree | 38b4d66cd69c07718fe0e2d31a0afc54ab8e55a0 /Source/cmSetCommand.cxx | |
parent | fdbfd6fc6ea1469d6cd07c3fbcca902ab8ad5e39 (diff) | |
download | CMake-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.cxx | 1 |
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()) |