From 99fa3376162a682f46feb6aa4c8524435fb357a4 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 3 Jun 2005 14:17:59 -0400 Subject: [PATCH] BUG: Remove memory leak --- Source/cmSetCommand.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 28941b6a2..548cec459 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())