Commit 2e4212de62e500a3d2e1aca6e0044b1edab115e3

Thomas de Grivel 2023-09-19T22:47:15

wip asan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index b7c2861..f86de4d 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -103,9 +103,12 @@ sw buf_parse_array_data (s_buf *buf, s_array *dest)
                                     0)) <= 0) {
     warnx("buf_parse_array_data: buf_parse_array_data_rec:"
           " %ld", r);
-    goto clean;
+    goto restore;
   }
   *dest = tmp;
+  goto clean;
+ restore:
+  free(tmp.tags);
  clean:
   free(address);
   return r;