]> granicus.if.org Git - re2c/commit
Fixed mismatched new/delelte (found by valgrind).
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 14 May 2015 11:21:26 +0000 (12:21 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 14 May 2015 11:21:26 +0000 (12:21 +0100)
commit8322a21500836c2949c58eeb11153213a4eed605
treefa0d67c8f56bc7a863a990edab4f04d902150dbe
parentdf0a77409b9d7a9b44f70316dcd50f9ec6a0cf5b
Fixed mismatched new/delelte (found by valgrind).

What is allocated with 're2c::allocate<T>' (operator new), should
be freed with 'operator delete', not with 'delete' or 'delete []'.
re2c/src/codegen/dfa_prepare.cc
re2c/src/codegen/go_construct.cc
re2c/src/codegen/skeleton/skeleton.cc
re2c/src/dfa/actions.cc
re2c/src/dfa/dfa.cc
re2c/src/dfa/state.cc