From 1239c83a7f776ef3c6cb902604399892f809cc79 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Wed, 4 Nov 2020 23:14:21 +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 69224f0..7e0a47f 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -78,7 +78,7 @@ struct car* clear_train(struct car* first, const char* target) { prev = tmp; tmp = tmp->next; } - free(temp); + free(tmp); prev->next = NULL; }