This commit is contained in:
Maryna Kravtsova 2020-10-26 19:16:19 +01:00
parent c61348f541
commit ef3244ad56

View File

@ -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);