[Cmake-commits] [cmake-commits] hoffman committed RegularExpression.cxx 1.11 1.12
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jul 9 11:46:05 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv27896
Modified Files:
RegularExpression.cxx
Log Message:
ENH: fix memory leak
Index: RegularExpression.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/RegularExpression.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -C 2 -d -r1.11 -r1.12
*** RegularExpression.cxx 16 May 2008 15:06:18 -0000 1.11
--- RegularExpression.cxx 9 Jul 2008 15:46:03 -0000 1.12
***************
*** 85,88 ****
--- 85,89 ----
int ind;
this->progsize = rxp.progsize; // Copy regular expression size
+ delete [] this->program;
this->program = new char[this->progsize]; // Allocate storage
for(ind=this->progsize; ind-- != 0;) // Copy regular expresion
More information about the Cmake-commits
mailing list