This commit is contained in:
Maryna Kravtsova 2020-11-05 16:51:04 +01:00
parent c73cf75196
commit fdd693443e

View File

@ -58,7 +58,7 @@ struct car* clear_train(struct car* first, const char* target) {
if(x == 0){ if(x == 0){
if(first->next == NULL){ if(first->next == NULL){
free(first); free(first);
return NULL: return NULL;
} }
prev = first->next; prev = first->next;
free(first); free(first);