diff --git a/cv5/a_train.c b/cv5/a_train.c index c18af36..c54c268 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) { int x = strcmp(this->value, target); if(x == 0){ first = this->next; - free(this) + free(this); this->next = NULL; //free(this->next);