generated by Karen
The following 3 files comprise a very small example that produces a memory leak of a single integer. The files are:
testpurify.cpp,
testObject.cpp, and
testObject.h
Try the following exercise to use purify.
purify g++ -g testpurify.cpp testObject.cpp -o testpurify
testpurify program.
Play with the various buttons to see what you get.
When the program finishes, you will see that there are
4 bytes of leaked memory. This corresponds to one integer.