1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-16 13:18:12 +01:00

core: Fix memory leak in libunwind-coredump.

_UCD_destroy() was not freeing all variables from UCD_info.
This commit is contained in:
Felipe Cerqueira 2017-08-14 14:02:39 -07:00 committed by Dave Watson
parent 0314ff8522
commit 152a96e291

View file

@ -44,7 +44,9 @@ _UCD_destroy (struct UCD_info *ui)
close(phdr->backing_fd); close(phdr->backing_fd);
} }
free(ui->phdrs);
free(ui->note_phdr); free(ui->note_phdr);
free(ui->threads);
free(ui); free(ui);
} }