Commit c70a413153d777a446baf1e9312db6b50543f3a7

Thomas de Grivel 2023-01-30T11:40:54

make test_asan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/test/facts_test.c b/test/facts_test.c
index 0759288..e76ab1e 100644
--- a/test/facts_test.c
+++ b/test/facts_test.c
@@ -507,6 +507,7 @@ void facts_test_open_file ()
     fact_test_clean_1(&fact);
     i++;
   }
+  facts_close(&facts);
   facts_clean(&facts);
   test_file_compare("facts_test_open_file.2.facts",
                     "facts_test_open_file.2.expected.facts");
@@ -537,6 +538,7 @@ void facts_test_open_file ()
     fact_test_clean_1(&fact);
     i++;
   }
+  facts_close(&facts);
   facts_clean(&facts);
   test_file_compare("facts_test_open_file.3.facts",
                     "facts_test_open_file.3.expected.facts");