diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 659a84ec..e7991d14 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -883,7 +883,6 @@ struct TestVM : CompiledRegex, ThreadedRegexVM } auto test_regex = UnitTest{[]{ - { TestVM<> vm{R"(a*b)"}; kak_assert(vm.exec("b")); diff --git a/src/regex_impl.hh b/src/regex_impl.hh index d7457043..535cdf92 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -118,6 +118,7 @@ public: for (size_t i = m_program.save_count-1; i > 0; --i) saves->pos[i].~Iterator(); saves->~Saves(); + ::operator delete(saves, sizeof(Saves) + (m_program.save_count-1) * sizeof(Iterator)); } }