From 715ea2777aaec8a73ca1b9020edc23a9bf7fe3fa Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 23 Mar 2024 18:36:27 +0100 Subject: [PATCH] submition3 --- a1/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/a1/program.c b/a1/program.c index 7c7cc7d..f35f301 100644 --- a/a1/program.c +++ b/a1/program.c @@ -24,7 +24,10 @@ int main() }else{ printf("CHYBA\n"); } + free(next_link->p_na_line); + link* ptr=next_link; next_link=next_link->p_na_next_struct; + free(ptr); } return 0; }