train2
This commit is contained in:
parent
0e2548ede3
commit
5b3d26ec92
@ -38,8 +38,9 @@ void cancel_train(struct car* first) {
|
||||
exit(0);
|
||||
}
|
||||
if(first->next == NULL){
|
||||
free(first);
|
||||
first = NULL;
|
||||
struct car *this = first;
|
||||
first = fitst->next;
|
||||
free(this);
|
||||
exit(0);
|
||||
}
|
||||
cancel_train(first->next);
|
||||
|
Loading…
Reference in New Issue
Block a user