From eecdec6951b5ed3f70f83c107b0a69fb0558aa6f Mon Sep 17 00:00:00 2001 From: Weber Date: Thu, 14 Nov 2024 17:28:17 +0000 Subject: [PATCH] test --- cv7/program.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/cv7/program.c b/cv7/program.c index 3dd3714..e085ce8 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -149,4 +149,19 @@ int main(void) { if (error || index != num_lines || count == 0) { printf("Expert z bufetu to vie.\n"); printf("Chybna databaza\n"); - for (int i = 0; i < num_lines; i++) free(lines[i]); \ No newline at end of file + for (int i = 0; i < num_lines; i++) { + free(lines[i]); + } + free(lines); + free_tree(root); + return 0; + } + + run_knowledge_system(root, count); + free_tree(root); + for (int i = 0; i < num_lines; i++) { + free(lines[i]); + } + free(lines); + return 0; +} \ No newline at end of file