test
This commit is contained in:
parent
a22fdbe135
commit
eecdec6951
@ -149,4 +149,19 @@ int main(void) {
|
|||||||
if (error || index != num_lines || count == 0) {
|
if (error || index != num_lines || count == 0) {
|
||||||
printf("Expert z bufetu to vie.\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
printf("Chybna databaza\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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user