I successfully run my code in small data but when i tried large scaled data, it gives me
"corrupted double-linked list:"
In small data, if I delete free() functions, error is disappeared and code works, but in large data whether i put free or not, code gives this error.
Creation of malloc and using free in my code as follows,
int **msgcount = malloc(partnum*sizeof(int*));
for(i=0; i<partnum; i++)
msgcount[i] = malloc( partnum*sizeof(int));
...lots of code
for(i=0;i<partnum;i++)
{
free(msgcount[i]);
}