
4 Apr
2007
4 Apr
'07
1:33 a.m.
Stephen Torri wrote:
I have a class which is containing a shared_ptr to data. This class parses in a XML file and populates the data based upon the contents. There is a memory problem in this file where I reset the shared_ptr.
Valgrind appears to claim that the contents of 0x4389BC0 are not initialized. It then remarks that
Address 0x4389BC0 is 8 bytes inside a block of size 60 alloc'd
by 0x41968E1: libreverse::infrastructure::Formula_Parser::get_Graph(std::string, std::string) (Formula_Parser.cpp:110)
Line 110 seems correct, but the part of the Graph object at offset 8 is never initialized for some reason, if I read Valgrind's output correctly.