Commit 33ffdb74e37421026ce912f7e59c7a9437df7919

Thomas de Grivel 2024-03-07T13:39:06

plug memleak in tag_addi

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/tag_addi.c b/libc3/tag_addi.c
index 14eddd8..85f92d2 100644
--- a/libc3/tag_addi.c
+++ b/libc3/tag_addi.c
@@ -48,5 +48,7 @@ s_tag * tag_addi (const s_tag *a, const s_tag *b, s_tag *dest)
     free(c);
     return NULL;
   }
+  complex_clean(&cb);
+  complex_clean(&ca);
   return tag_init_complex(dest, c);
 }