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

View File

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