diff options
author | timshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 15:01:44 +0000 |
---|---|---|
committer | timshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 15:01:44 +0000 |
commit | c6329bfee6ea7e451543ce3b64fcbb42e62da160 (patch) | |
tree | 89cf46ca4ad0cf55cbb82aee2d6d7a9767a3304c /libstdc++-v3/include/bits/regex_executor.h | |
parent | 850659323a3d5f340fa87d4754820d329b699598 (diff) | |
download | ppe42-gcc-c6329bfee6ea7e451543ce3b64fcbb42e62da160.tar.gz ppe42-gcc-c6329bfee6ea7e451543ce3b64fcbb42e62da160.zip |
2013-10-15 Tim Shen <timshen91@gmail.com>
PR libstdc++/58737
* include/bits/regex_automaton.h (_Automaton<>::~_Automaton): Fix memory
leak by adding it.
* include/bits/regex_executor.h (_Executor<>::~_Executor): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203610 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/regex_executor.h')
-rw-r--r-- | libstdc++-v3/include/bits/regex_executor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/regex_executor.h b/libstdc++-v3/include/bits/regex_executor.h index 462643779f2..23b5d011545 100644 --- a/libstdc++-v3/include/bits/regex_executor.h +++ b/libstdc++-v3/include/bits/regex_executor.h @@ -83,6 +83,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : __flags) { } + virtual + ~_Executor() + { } + // Set matched when string exactly match the pattern. bool _M_match() |