forgot to add a subtraction in length of the node

This commit is contained in:
Emanuel Rodriguez 2023-07-15 11:34:31 -07:00
parent 351db3f366
commit 755f16877d
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ void q_add_node(Q* q, QNode* node) {
void q_remove_node(Q* q) {
QNode* n = q->head;
q->head = n->next;
q->length--;
free(n);
}