From 70c14170fa4230cf679dc2f061ce350aa4b20dc3 Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Tue, 28 Oct 2025 20:19:15 +0100 Subject: [PATCH] Fixing the link issue --- du4/a_train.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/du4/a_train.c b/du4/a_train.c index 69ebd66..72f40e0 100644 --- a/du4/a_train.c +++ b/du4/a_train.c @@ -65,9 +65,8 @@ struct car* clear_train(struct car* first, const char* target) { struct car* next = first->next; while (next->next) {if(strcmp(next->value, target) == 0){ - - temp->next = next->next; next->next = NULL; + temp->next = next->next; free(next); }