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; }