我遇到了代码问题,它在free(q->izv)函数处中断,并出现调试错误:
CRT detected that the application wrote to memory after end of heap buffer
我不知道那是什么意思,所以我会非常感激任何帮助。
typedef struct izvodjaci{
char *izv;
int broj;
struct izvodjaci *sled;
}IZV;
obrisi_i(IZV *p){
while (p){
IZV *q;
q = p;
p = p->sled;
if (!strcmp(q->izv,"UNKNOWN")) free(q->izv);
free(q);
}
}
提前致谢