fix malformed file memory leak

This commit is contained in:
Alex Baines 2017-03-04 15:59:20 +00:00
parent 1614e88920
commit 7b8c4be9ab
1 changed files with 2 additions and 2 deletions

View File

@ -236,12 +236,12 @@ static void _hmml_free_anno(HMML_Annotation* a){
free(a->author);
sb_free(a->text);
for(size_t j = 0; j < a->reference_count; ++j){
for(size_t j = 0; j < sb_count(a->references); ++j){
_hmml_free_ref(a->references + j);
}
sb_free(a->references);
for(size_t j = 0; j < a->marker_count; ++j){
for(size_t j = 0; j < sb_count(a->markers); ++j){
free(a->markers[j].text);
}
sb_free(a->markers);