aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/parsed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-kbdc/parsed.c')
-rw-r--r--src/mds-kbdc/parsed.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mds-kbdc/parsed.c b/src/mds-kbdc/parsed.c
index 45abd23..125259a 100644
--- a/src/mds-kbdc/parsed.c
+++ b/src/mds-kbdc/parsed.c
@@ -46,6 +46,12 @@ void mds_kbdc_parsed_destroy(mds_kbdc_parsed_t* restrict this)
free(this->source_code);
free(this->pathname);
mds_kbdc_parse_error_free_all(this->errors);
+ while (this->languages_ptr--)
+ free(this->languages[this->languages_ptr]);
+ free(this->languages);
+ while (this->countries_ptr--)
+ free(this->countries[this->countries_ptr]);
+ free(this->countries);
memset(this, 0, sizeof(mds_kbdc_parsed_t));
}