This commit is contained in:
Weber 2024-11-14 17:28:17 +00:00
parent a22fdbe135
commit eecdec6951

View File

@ -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]);
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;
}