当前位置: 代码迷 >> 综合 >> 头指针
  详细解决方案

头指针

热度:2   发布时间:2023-10-26 23:15:38.0

pHead如果只是赋予地址,没有申请空间,不能用free释放

PathList pList = (PathList)malloc(sizeof(Path));

PathList pHead = pList;

pList = pHead;

free(pList);
//free(pHead);

  相关解决方案