diff options
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 5c6d8f94f..6af570739 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -270,6 +270,9 @@ static void extra_data_end(void) // don't save partial structures - we must have both key and value if (cur_extra_data.key && cur_extra_data.value) add_extra_data(get_dc(), cur_extra_data.key, cur_extra_data.value); + free((void *)cur_extra_data.key); + free((void *)cur_extra_data.value); + cur_extra_data.key = cur_extra_data.value = NULL; } static void weight(char *buffer, weight_t *weight) |