Commit e2fb5f218ffd5acc33f45746dbdef3596e2477cd

Thomas de Grivel 2023-03-20T21:12:42

plug memleak

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 3096e00..db0b35b 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -282,6 +282,7 @@ sw buf_parse_call_op_rec (s_buf *buf, s_call *dest, u8 min_precedence)
     list_next(tmp3.arguments)->tag = *right;
     tag_init_call(left, &tmp3);
   }
+  call_clean(dest);
   *dest = tmp;
   r = result;
   goto clean;