Commit 9cd12d5c1fd50e11d940ce4d92f4182e7a07969b

Thomas de Grivel 2024-09-09T14:19:33

clean str_list in markdown.c

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/markdown/markdown.c b/markdown/markdown.c
index 5c5ec70..12a30f5 100644
--- a/markdown/markdown.c
+++ b/markdown/markdown.c
@@ -201,6 +201,7 @@ s32 markdown_titles_leave_block (MD_BLOCKTYPE type, void *detail,
                                         (const s_list * const *)
                                         &str_list))
       return -1;
+    list_delete_all(str_list);
     if (tuple_list->type != TAG_LIST) {
       err_puts("markdown_titles_leave_block: tuple_list is not a List");
       assert(! "markdown_titles_leave_block: tuple_list is not a List");