From: helly Date: Mon, 5 Jun 2006 22:23:30 +0000 (+0000) Subject: - Fix memleak (RuleOp::code) X-Git-Tag: 0.13.6~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60b66787ddb388854abba984a5be57a260e3d4c4;p=re2c - Fix memleak (RuleOp::code) --- diff --git a/re2c/re.h b/re2c/re.h index d3a0c26a..b4363754 100644 --- a/re2c/re.h +++ b/re2c/re.h @@ -178,6 +178,12 @@ public: public: RuleOp(RegExp*, RegExp*, Token*, uint); + + ~RuleOp() + { + delete code; + } + const char *typeOf() { return type;