This commit is contained in:
Maryna Kravtsova 2020-11-02 14:58:56 +01:00
parent fdf9fe0917
commit 2c6b4d3778

View File

@ -52,6 +52,7 @@ void cancel_train(struct car* first) {
} }
else if(first->next == NULL){ else if(first->next == NULL){
free(first); free(first);
cancel_train(first->next);
} }
} }