From: helly Date: Mon, 5 Jun 2006 22:14:00 +0000 (+0000) Subject: - Fix memleak (State::action continued) X-Git-Tag: 0.13.6~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e51d873ad11a054b366fad36b5c53d73b69cb35b;p=re2c - Fix memleak (State::action continued) --- diff --git a/re2c/dfa.h b/re2c/dfa.h index 42563f30..aa0a663f 100644 --- a/re2c/dfa.h +++ b/re2c/dfa.h @@ -291,6 +291,7 @@ public: inline Action::Action(State *s) : state(s) { + delete s->action; s->action = this; }