diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/phrase_index.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 930d606..5fe61c2 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -458,8 +458,12 @@ bool SubPhraseIndex::merge(PhraseIndexLogger * logger){ olditem.m_chunk.set_chunk(oldchunk.begin(), oldchunk.size(), NULL); - if (olditem != *tmpitem) + + if (olditem != *tmpitem) { + delete tmpitem; return false; + } + delete tmpitem; break; |