diff --git a/lib/markup.c b/lib/markup.c index ced785df..745fe882 100644 --- a/lib/markup.c +++ b/lib/markup.c @@ -103,6 +103,7 @@ int markup_free_tag(struct markup_tag * tag) { list_free(keys); free(keys); hashmap_free(tag->options); + free(tag->options); return 0; } diff --git a/lib/markup_text.c b/lib/markup_text.c index ec343ca1..db3e7dc5 100644 --- a/lib/markup_text.c +++ b/lib/markup_text.c @@ -257,6 +257,8 @@ int markup_finish_renderer(struct MarkupState * state) { markup_finish(state->parser); list_free(state->state); list_free(state->colors); + free(state->state); + free(state->colors); int total = state->max_cursor_x - state->initial_left; free(state); return total;