This commit is contained in:
Radovan Kofira 2020-11-05 21:19:58 +01:00
parent b16d302b96
commit f4382afafd

View File

@ -36,7 +36,7 @@ void print_train(struct car* first) {
void cancel_train(struct car* first) {
if(first!=NULL){
first->next=first;
first=first->next;
free(first->next);
cancel_train(first);
}