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 <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-05-26 09:35:40 -03:00
parent d8940df90b
commit 26bd4c4164
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}