diff --git a/du7/snake.c b/du7/snake.c index 21a3077..dac1810 100644 --- a/du7/snake.c +++ b/du7/snake.c @@ -32,11 +32,7 @@ struct snake* remove_snake(struct snake* snake){ free(snake->next); snake->next = NULL; - snake = medzipamat; - - free(medzipamat); - - return snake; + return medzipamat; } }