diff --git a/cv4/a_train.c b/cv4/a_train.c index 185da4e..5ed5772 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -56,7 +56,7 @@ struct car* clear_train(struct car* first, const char* target) { //strcpy(this->value,this->next->value); //this->next=NULL; free(this); - this=this->next + this=this->next; //free(this->next); return this; }else if(strcmp(this->next->value, target) == 0){