[Bug libstdc++/58737] leak in std::regex_match

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue Oct 15 14:50:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58737

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Maybe:

Index: regex_executor.h
===================================================================
--- regex_executor.h    (revision 203587)
+++ regex_executor.h    (working copy)
@@ -155,6 +155,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       virtual bool
       _M_main() = 0;

+      virtual
+      ~_Executor() { }
+
       _BiIter         _M_current;
       const _BiIter   _M_begin;
       const _BiIter   _M_end;

Eh, eh ;) ;)



More information about the Gcc-bugs mailing list