Review: Needs Information

The functionality looks great. 

Is there a way to remove the following problem reported by valgrind?

valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./bin/zorba -q 
'"üöä"' -z "encoding=ISO-8859-1" -z "method=text"  > foo

==20323== Memcheck, a memory error detector
==20323== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==20323== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==20323== Command: ./bin/zorba -q "üöä" -z encoding=ISO-8859-1 -z method=text
==20323== HEAP SUMMARY:
==20323==     in use at exit: 24 bytes in 1 blocks
==20323==   total heap usage: 23,089 allocs, 23,088 frees, 10,513,203 bytes 
==20323== 24 bytes in 1 blocks are still reachable in loss record 1 of 1
==20323==    at 0x4C2B1C7: operator new(unsigned long) (in 
==20323==    by 0x6CB52D5: std::ios_base::register_callback(void 
(*)(std::ios_base::event, std::ios_base&, int), int) (in 
==20323==    by 0x550118E: bool zorba::transcode::attach<char, 
std::char_traits<char> >(std::basic_ios<char, std::char_traits<char> >&, char 
const*) (transcode_stream.h:153)
==20323==    by 0x54FF4BF: zorba::serializer::attach_transcoder(std::ostream&) 
==20323==    by 0x54FC72C: 
std::ostream&) (serializer.cpp:2020)
==20323==    by 0x54FF202: zorba::serializer::setup(std::ostream&, bool) 
==20323==    by 0x54FF5BF: 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2652)
==20323==    by 0x54FF50E: 
std::ostream&, bool) (serializer.cpp:2634)
==20323==    by 0x54994D3: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
==20323==    by 0x5498747: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1149)
==20323==    by 0x4156AA: compileAndExecute(zorba::Zorba*, 
zorba::XmlDataManager*, ZorbaCMDProperties const&, 
zorba::SmartPtr<zorba::StaticContext>&, std::string const&, std::istream&, 
std::ostream&, TimingInfo&) (zorbacmd.cpp:871)
==20323==    by 0x416D01: main (zorbacmd.cpp:1204)

Your team Zorba Coders is subscribed to branch lp:zorba.

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to