From ca4821fc9ed161f050263db157732e19612b2e0c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Apr 2008 22:14:47 +0200 Subject: [PATCH] [markup] Fix memory leak in text handling Signed-off-by: Julien Danjou --- common/markup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/markup.c b/common/markup.c index 35f1a3b0b..71f584c8a 100644 --- a/common/markup.c +++ b/common/markup.c @@ -151,6 +151,7 @@ markup_parse_text(GMarkupParseContext *context __attribute__ ((unused)), rlen = a_strlen(p->text) + 1 + text_len; p_realloc(&p->text, rlen); a_strncat(p->text, rlen, esc, text_len); + p_delete(&esc); } /** Create a markup_parser_data_t structure with elements list.