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