|
From: Stephen T. <st...@to...> - 2005-09-25 00:36:10
|
I read the FAQ and using the User manual so that puts me a bit of the
clueless user. I am attempting to see if I was able to program an
assignment for a class without memory leaks. The assignment is completed
and turned in so any work now is being done for my improvement.
I compile the application, g++ -g -o hw3 hw3.cpp, and ran it with
valgrind-2.4.0 using:
valgrind --db-attach=yes -v --tool=memcheck --show-reachable=yes --leak-check=full hw3 hw3.cpp
I got about four errors but for the sake of education I am only posting
the first.
==24742== 40 bytes in 1 blocks are definitely lost in loss record 1 of 4
==24742== at 0x1B9044C4: operator new(unsigned) (in /usr/lib/valgrind/vgpreload_memcheck.so)
==24742== by 0x804B252: Parser::Parser() (hw3.cpp:151)
==24742== by 0x8049525: main (hw3.cpp:441)
==24742==
==24742==
When I looked at the code I could not see what was wrong. GDB was not
triggered for this or any of the other report errors. Attached is the
file and the log output of running valgrind.
Stephen
|