clear
This commit is contained in:
parent
6b862ba9d7
commit
3917d656f3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user