pHead如果只是赋予地址,没有申请空间,不能用free释放
PathList pList = (PathList)malloc(sizeof(Path));
PathList pHead = pList;
pList = pHead;
free(pList);
//free(pHead);
pHead如果只是赋予地址,没有申请空间,不能用free释放
PathList pList = (PathList)malloc(sizeof(Path));
PathList pHead = pList;
pList = pHead;
free(pList);
//free(pHead);