diff options
-rw-r--r-- | Source/kwsys/RegularExpression.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/kwsys/RegularExpression.cxx b/Source/kwsys/RegularExpression.cxx index ac2c9b0..3566a65 100644 --- a/Source/kwsys/RegularExpression.cxx +++ b/Source/kwsys/RegularExpression.cxx @@ -84,6 +84,7 @@ RegularExpression& RegularExpression::operator= (const RegularExpression& rxp) } 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 this->program[ind] = rxp.program[ind]; |