]> granicus.if.org Git - re2c/commitdiff
Fixed memory leak.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 17 Jul 2017 21:38:20 +0000 (22:38 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 17 Jul 2017 21:38:20 +0000 (22:38 +0100)
re2c/src/code/output.cc

index 75512a3652d1d32e6df0e916bf4761378148ecca..291fbfffa4cfb2999f2b0b1361a80dbd181b644f 100644 (file)
@@ -19,7 +19,7 @@ OutputFragment::OutputFragment (type_t t, uint32_t i)
 
 OutputFragment::~OutputFragment()
 {
-       if (type == TAGS) {
+       if (type == TAGS || type == TAGLISTS) {
                delete tags;
        }
 }