fix malformed file memory leak
This commit is contained in:
parent
1614e88920
commit
7b8c4be9ab
|
@ -236,12 +236,12 @@ static void _hmml_free_anno(HMML_Annotation* a){
|
||||||
free(a->author);
|
free(a->author);
|
||||||
sb_free(a->text);
|
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);
|
_hmml_free_ref(a->references + j);
|
||||||
}
|
}
|
||||||
sb_free(a->references);
|
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);
|
free(a->markers[j].text);
|
||||||
}
|
}
|
||||||
sb_free(a->markers);
|
sb_free(a->markers);
|
||||||
|
|
Loading…
Reference in New Issue