diff --git a/src/w32_regex_traits.cpp b/src/w32_regex_traits.cpp index 71acbb1c..89e37580 100644 --- a/src/w32_regex_traits.cpp +++ b/src/w32_regex_traits.cpp @@ -383,7 +383,9 @@ void BOOST_REGEX_CALL w32_traits_base::do_free() BOOST_RE_GUARD_STACK delete[] pclasses; delete pcoll_names; +#ifndef BOOST_NO_WREGEX delete syntax; +#endif if(hresmod) { FreeLibrary(hresmod);