From 90019a464d948375629a038371c50dd0e808d548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vasi=C4=BE?= Date: Tue, 26 Apr 2022 21:46:15 +0200 Subject: [PATCH] domaca_uloha_7 --- du7/snake.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } }