From 3917d656f3a839a26e3794b5751a69992909a36c Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 21:32:46 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index c18af36..c54c268 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) { int x = strcmp(this->value, target); if(x == 0){ first = this->next; - free(this) + free(this); this->next = NULL; //free(this->next);