This commit is contained in:
Maryna Kravtsova 2020-11-05 16:51:56 +01:00
parent fdd693443e
commit 533abadd61

View File

@ -60,6 +60,9 @@ struct car* clear_train(struct car* first, const char* target) {
free(first); free(first);
return NULL; return NULL;
} }
else{
return first;
}
prev = first->next; prev = first->next;
free(first); free(first);
return prev; return prev;