From 152a96e291d8c5a268ab6891eeba92f49c94f15c Mon Sep 17 00:00:00 2001 From: Felipe Cerqueira Date: Mon, 14 Aug 2017 14:02:39 -0700 Subject: [PATCH] core: Fix memory leak in libunwind-coredump. _UCD_destroy() was not freeing all variables from UCD_info. --- src/coredump/_UCD_destroy.c | 2 ++ 1 file changed, 2 insertions(+) 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); }