This commit is contained in:
Max-R 2025-12-05 10:48:10 +01:00
parent ddd4132e1f
commit 4bb0d7516e

View File

@ -52,6 +52,9 @@ void clearStack(StackNode *stack)
StackNode *next = stack->next; StackNode *next = stack->next;
free(stack); free(stack);
stack = next; stack = next;
stack->data = NULL;
stack->next = NULL;
stack->prev = NULL;
} }
return NULL; return NULL;