diff options
author | Felipe Cerqueira <cerqueira@google.com> | 2017-08-14 14:02:39 -0700 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-08-14 18:39:37 -0700 |
commit | 152a96e291d8c5a268ab6891eeba92f49c94f15c (patch) | |
tree | ee1a0f507ec8b5c66192566d687f2c1b27206755 | |
parent | 0314ff8522a6c991db26d5fb935e270d260e6dc0 (diff) | |
download | libunwind-152a96e291d8c5a268ab6891eeba92f49c94f15c.tar.gz |
core: Fix memory leak in libunwind-coredump.
_UCD_destroy() was not freeing all variables from UCD_info.
-rw-r--r-- | src/coredump/_UCD_destroy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coredump/_UCD_destroy.c b/src/coredump/_UCD_destroy.c index 5aff989c..ddc36ec8 100644 --- a/src/coredump/_UCD_destroy.c +++ b/src/coredump/_UCD_destroy.c @@ -44,7 +44,9 @@ _UCD_destroy (struct UCD_info *ui) close(phdr->backing_fd); } + free(ui->phdrs); free(ui->note_phdr); + free(ui->threads); free(ui); } |