run result:Code:struct window { int chrNum; int csID; char *indicInd; char *japInd; int startPos; int endPos; }; int main(int argc,char *argv[]) { struct window *w = (struct window *) malloc (30); struct window *tmpW; tmpW = wInd; /* assign values to (struct window *) w */ free(w); return 0; }
glibc detected *** double free or corruption (out): 0x0000002ab292b110