Im getting double free error's from this? Why?
2d array standard implementation. any clues?
int **m = malloc(5 * sizeof(int));
int i,j;
for(i = 0; i < 5; i++)
m[i] = malloc(5 * sizeof(int));
for(i = 0; i< 5; i++)
free(m[i]);
free(m);