diff --git a/du4/a_train.c b/du4/a_train.c index 241bbbd..3c99d33 100644 --- a/du4/a_train.c +++ b/du4/a_train.c @@ -70,7 +70,6 @@ struct car* clear_train(struct car* first, const char* target) { if(strcmp(temp->value, target) == 0){ struct car* next = temp->next; prev->next = next; - free(temp); temp = next; }