I have declared a 2D malloc array like this in C:
int** pArray;
int i;
pArray=(int**)malloc(pRows*sizeof(int*));
for(i=0;i<pRows;i++)
(int*)malloc(pColumns*sizeof(int*));
How can I free this array? I saw on the net that the number of free() should be same as number of malloc() used. What can I free twice in this case?