diff --git a/output/outelf.c b/output/outelf.c index 1490ab0c8..d9bba066e 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -595,6 +595,8 @@ static void elf_cleanup(void) sects[i]->head = sects[i]->head->next; nasm_free(r); } + nasm_free(sects[i]->name); + nasm_free(sects[i]); } hash_free(§ion_by_name); raa_free(section_by_index);