dwarf: fix leak