Commit 3505a5501b4770ac191bb01f1aaef7eb9d511d69

Thomas de Grivel 2024-07-22T13:58:46

fix test_asan in env_load

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libkc3/env.c b/libkc3/env.c
index 1407176..0da45af 100644
--- a/libkc3/env.c
+++ b/libkc3/env.c
@@ -2159,6 +2159,8 @@ bool env_load (s_env *env, const s_str *path)
     tag_clean(&tmp);
     tag_clean(&tag);
   }
+  tag_clean(file_dir);
+  tag_clean(file_path);
   *file_dir = file_dir_save;
   *file_path = file_path_save;
   buf_getc_close(&buf);