clear
This commit is contained in:
parent
81c09c06b7
commit
f6cc965af6
@ -84,7 +84,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
while(this != NULL){
|
||||
int x = strcmp(this->value, target);
|
||||
if(x == 0){
|
||||
free(this);
|
||||
free(this->next);
|
||||
return first;
|
||||
}
|
||||
this = this->next;
|
||||
|
Loading…
Reference in New Issue
Block a user