From 26bd4c41646a64b996b4b5e4f75028ddff91e14a Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 26 May 2021 09:35:40 -0300 Subject: [PATCH] dwarf_loader: Delete the allocated CU when aborting As in this case we're not adding it to the cus->cus in finalize_cu_immediately(). Signed-off-by: Arnaldo Carvalho de Melo --- dwarf_loader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dwarf_loader.c b/dwarf_loader.c index 64b9ff2..4db2171 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -2696,6 +2696,7 @@ static int cus__merge_and_process_cu(struct cus *cus, struct conf_load *conf, return 0; out_abort: + cu__delete(cu); return DWARF_CB_ABORT; }