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