Commit 76f21fcf014d9146cee4f4e49badf4d377a382cc

Thomas de Grivel 2023-08-19T14:51:02

wip asan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/libc3/tag.c b/libc3/tag.c
index 7a46be9..130e178 100644
--- a/libc3/tag.c
+++ b/libc3/tag.c
@@ -715,6 +715,7 @@ s_tag * tag_add (const s_tag *a, const s_tag *b, s_tag *dest)
       integer_add(&tmp, &tmp2, &tmp);
       tag_init_integer(dest, &tmp);
       integer_clean(&tmp);
+      integer_clean(&tmp2);
       return dest;
     case TAG_S32:
       integer_init_u64(&tmp, a->data.u64);
@@ -722,6 +723,7 @@ s_tag * tag_add (const s_tag *a, const s_tag *b, s_tag *dest)
       integer_add(&tmp, &tmp2, &tmp);
       tag_init_integer(dest, &tmp);
       integer_clean(&tmp);
+      integer_clean(&tmp2);
       return dest;
     case TAG_S64:
       integer_init_u64(&tmp, a->data.u64);