diff --git a/du7/snake.c b/du7/snake.c index 6f8de67..d837b78 100644 --- a/du7/snake.c +++ b/du7/snake.c @@ -31,7 +31,7 @@ struct snake* remove_snake(struct snake* snake){ snake = snake->next; if (snake->next->next == NULL) break; } - free(snake->next->next); + free(snake->next); snake->next = NULL; snake = medzipamat;