|
From: John R. <jr...@bi...> - 2015-03-03 06:05:34
|
> Memory leak introduced as :char* skg = (char*)malloc (10000*sizeof(char)); Write the smallest possible program that contains the above statement but also causes memcheck to report a leak. You must run the program under memcheck and get an actual leak report. Thinking "it's so easy, that definitely leaks!" is NOT sufficient. Compare and contrast your daemon with that smallest possible program that leaks. |