Professional Documents
Culture Documents
#technicalthursday
Sunbeam Infotech
Sunbeam Infotech www.sunbeaminfo.com
Memory leakage
void fun() { 5
base address is so this memory 24 bytes allocated
1 int *p;
stored in pointer. 10 is leaked. by malloc().
3 p = (int*) malloc(24); p
4
// … 2