my question is about how to free completely memory when I new a 2D pointer array in c++, I have used below code, but memory not free completely:
1- int ** a;
2- a = new int*[1000];
3- for(int i =0; i < 1000; i++)
4- a[i] = new int[1000];
//// some code here
5- for(int i =0; i < 1000; i++)
6- delete [] a[i];
7- delete [] a;
When I set a break point in line 1, memory in my task manager is 0.4, in line 5 , memory is 4.4, but after line 7 that I delete the variable, memory is 1.1 why memory does not return to 0.4?