Commit 97dc1ffa526092808aaaaa6010e79b2c0e536fbd

Thomas de Grivel 2023-07-24T13:16:26

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 4653ef8..89494ea 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -681,6 +681,7 @@ sw buf_parse_cfn (s_buf *buf, s_cfn *dest)
   result += r;
   if (! (name_sym = str_to_sym(&name_str)))
     goto restore;
+  str_clean(&name_str);
   if ((r = buf_ignore_spaces(buf)) <= 0)
     goto restore;
   result += r;