This commit is contained in:
Maryna Kravtsova 2020-11-04 23:14:21 +01:00
parent 80420feb86
commit 1239c83a7f

View File

@ -78,7 +78,7 @@ struct car* clear_train(struct car* first, const char* target) {
prev = tmp; prev = tmp;
tmp = tmp->next; tmp = tmp->next;
} }
free(temp); free(tmp);
prev->next = NULL; prev->next = NULL;
} }