Memory leak of tokenizers in simple store

Bug #944797 reported by Paul J. Lucas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Paul J. Lucas

Bug Description

<b>MLK</b> ==3689== 2,032 (48 direct, 1,984 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
==3689== at 0x4C27CC1: operator new(unsigned long) (vg_replace_malloc.c:261)
==3689== by 0x5A1081A: zorba::ICU_TokenizerProvider::getTokenizer(zorba::locale::iso639_1::type, zorba::Tokenizer::Numbers&amp;) const (icu_tokenizer.cpp:412)
==3689== by 0x5F11001: zorba::simplestore::XmlNodeTokenizerCallback::push_lang(zorba::locale::iso639_1::type) (node_items.cpp:4666)
==3689== by 0x5F11E7A: zorba::simplestore::XmlNodeTokenizerCallback::XmlNodeTokenizerCallback(zorba::TokenizerProvider const&amp;, zorba::Tokenizer::Numbers&amp;, zorba::locale::iso639_1::type, zorba::FTTokenStore&amp;) (node_items.cpp:4622)
==3689== by 0x5F11FD0: zorba::simplestore::XmlNode::getTokens(zorba::TokenizerProvider const&amp;, zorba::Tokenizer::Numbers&amp;, zorba::locale::iso639_1::type, bool) const (node_items.cpp:4842)
==3689== by 0x5A0C9A9: zorba::FTContainsIterator::nextImpl(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;, zorba::PlanState&amp;) const (full_text_impl.cpp:90)
==3689== by 0x5846103: zorba::PlanIterator::consumeNext(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;, zorba::PlanIterator const*, zorba::PlanState&amp;) (plan_iterator.cpp:124)
==3689== by 0x5844F0F: zorba::PlanWrapper::next(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;) (plan_wrapper.cpp:149)
==3689== by 0x50C4D2E: zorba::serializer::serialize(zorba::rchandle&lt;zorba::store::Iterator&gt;, std::ostream&amp;, zorba::SAX2_ContentHandler*) (serializer.cpp:2303)
==3689== by 0x50C5314: zorba::serializer::serialize(zorba::rchandle&lt;zorba::store::Iterator&gt;, std::ostream&amp;) (serializer.cpp:2261)
==3689== by 0x507362A: zorba::XQueryImpl::serialize(std::ostream&amp;, zorba::rchandle&lt;zorba::PlanWrapper&gt;&amp;, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1291)
==3689== by 0x5073799: zorba::XQueryImpl::execute(std::ostream&amp;, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1117)
==3689== by 0x408183: main (testdriver.cpp:435)

Tags: full-text

Related branches

Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.