]> granicus.if.org Git - re2c/commitdiff
- Fix memleak (RuleOp::code)
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:23:30 +0000 (22:23 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 5 Jun 2006 22:23:30 +0000 (22:23 +0000)
re2c/re.h

index d3a0c26a1b811ecdaa6abbac492ba79e84d3e64a..b436375447194919e2bbf852c050539af77daa22 100644 (file)
--- 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;