clear
This commit is contained in:
parent
6219ef4278
commit
80420feb86
@ -78,7 +78,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
prev = tmp;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
free(prev->next);
|
||||
free(temp);
|
||||
prev->next = NULL;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user