From f34a09b2b66505bcea9212e5b3ce6ff8e996ca30 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 11 Apr 2024 14:39:18 +0200 Subject: [PATCH] Initialization --- cv9/snake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv9/snake.c b/cv9/snake.c index a214496..6b0e543 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -13,7 +13,7 @@ struct snake* remove_snake(struct snake* snake) { struct snake* head; struct snake* this = head; while (head!= NULL) { - head = head->next; + head = snake->next; free(this); } return snake;