mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Bug fixes to C code.
This commit is contained in:
@@ -27,7 +27,7 @@ ArrayQueue *newArrayQueue(int capacity) {
|
||||
/* 析构函数 */
|
||||
void delArrayQueue(ArrayQueue *queue) {
|
||||
free(queue->nums);
|
||||
queue->queCapacity = 0;
|
||||
free(queue);
|
||||
}
|
||||
|
||||
/* 获取队列的容量 */
|
||||
|
||||
Reference in New Issue
Block a user