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