[Openmp-commits] [PATCH] D76874: [libomptarget] Add missing elf_end call in elf_common.c

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 26 12:30:27 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG856c99543693: [libomptarget] Add missing elf_end call in elf_common.c (authored by JonChesterfield).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76874/new/

https://reviews.llvm.org/D76874

Files:
  openmp/libomptarget/plugins/common/elf_common.c


Index: openmp/libomptarget/plugins/common/elf_common.c
===================================================================
--- openmp/libomptarget/plugins/common/elf_common.c
+++ openmp/libomptarget/plugins/common/elf_common.c
@@ -45,6 +45,7 @@
   // Check if ELF is the right kind.
   if (elf_kind(e) != ELF_K_ELF) {
     DP("Unexpected ELF type!\n");
+    elf_end(e);
     return 0;
   }
   Elf64_Ehdr *eh64 = elf64_getehdr(e);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76874.252948.patch
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200326/df00bb46/attachment.bin>


More information about the Openmp-commits mailing list