This commit is contained in:
Oleksandr Vyshniakov 2025-04-09 22:34:53 +02:00
parent f98b699006
commit a367fb958b

View File

@ -35,7 +35,7 @@ struct snake* remove_snake(struct snake* snake) {
}
if (previous !=NULL) {
free(previous->next);
free(current->next);
previous->next = NULL;
}