diff options
Diffstat (limited to 'src/xml_parser_repomd.c')
-rw-r--r-- | src/xml_parser_repomd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xml_parser_repomd.c b/src/xml_parser_repomd.c index 2e31817..f0b06a5 100644 --- a/src/xml_parser_repomd.c +++ b/src/xml_parser_repomd.c @@ -114,6 +114,9 @@ cr_start_handler(void *pdata, const xmlChar *element, const xmlChar **attr) return; } + gboolean free_attr = FALSE; + attr = unescape_ampersand_from_values(attr, &free_attr); + // Update parser data pd->state = sw->to; pd->docontent = sw->docontent; @@ -258,6 +261,10 @@ cr_start_handler(void *pdata, const xmlChar *element, const xmlChar **attr) default: break; } + + if (free_attr) { + g_strfreev((char **)attr); + } } static void |