This commit is contained in:
krahets
2023-03-16 18:20:52 +08:00
parent 7818cd9d31
commit a8d26b3736
3 changed files with 4 additions and 3 deletions

View File

@@ -362,8 +362,8 @@ comments: true
}
~LinkedListQueue() {
delete front;
delete rear;
// 遍历链表删除结点,释放内存
freeMemoryLinkedList(front);
}
/* 获取队列的长度 */