From e6737ab60293288781eb9f5217cf4d63b9f98f21 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Mon, 2 Nov 2020 14:33:30 +0100 Subject: [PATCH] add --- 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 a4318f1..5941132 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -43,8 +43,8 @@ void cancel_train(struct car* first) { return; } if(first->next != NULL){ - cancel_train(first->next); first->next = NULL; + cancel_train(first->next); } else if(first->next == NULL){ free(first);