From 2c6b4d3778ae39b83e9be585539c519cb0c66032 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Mon, 2 Nov 2020 14:58:56 +0100 Subject: [PATCH] car --- cv5/a_train.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cv5/a_train.c b/cv5/a_train.c index 8796d53..280f415 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -52,6 +52,7 @@ void cancel_train(struct car* first) { } else if(first->next == NULL){ free(first); + cancel_train(first->next); } }