train
This commit is contained in:
parent
c61348f541
commit
ef3244ad56
@ -38,8 +38,8 @@ void cancel_train(struct car* first) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
else if(first->next == NULL){
|
else if(first->next == NULL){
|
||||||
free(first->next);
|
free(first);
|
||||||
//exit(0);
|
first = NULL;
|
||||||
}
|
}
|
||||||
cancel_train(first->next);
|
cancel_train(first->next);
|
||||||
free(first);
|
free(first);
|
||||||
|
Loading…
Reference in New Issue
Block a user