Why do we need to test weather it is memory leak or not?How are we going to know that?

Showing Answers 1 - 3 of 3 Answers

Vignesh Nadar

  • Aug 5th, 2006
 

Possibilities are:

1) Array will print "Garbage Value"

2) Message by the Compiler!

Vignesh Nadar: 9860 13 15 15

  Was this answer useful?  Yes

charles

  • Aug 8th, 2006
 

You can tell using numerous programs like gdb or dbx. You could write a wrapper for malloc that maintains a linked list of all the memory you request and free everything when you know you're done with it.

  Was this answer useful?  Yes

shaanxxx

  • Aug 19th, 2006
 

1) Use Purify 2) Write your own memory allocator, which will report

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions