diff --git a/cv5/a_train.c b/cv5/a_train.c index 8761a76..d1b8cda 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -86,6 +86,7 @@ struct car* clear_train(struct car* first, const char* target) { if(x == 0){ struct car* temp = this->next->next; this->next = NULL; + free(this); //this->next = temp; return temp; }