mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 01:56:05 +00:00
[libomptarget] Add missing elf_end call in elf_common.c
Summary: [libomptarget] Add missing elf_end call in elf_common.c Noticed when reviewing D76843. Reviewers: simoll, jdoerfert, efocht, AndreyChurbanov, grokos, manorom Reviewed By: grokos Subscribers: openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D76874
This commit is contained in:
parent
8099e0fe82
commit
856c995436
@ -45,6 +45,7 @@ static inline int32_t elf_check_machine(__tgt_device_image *image,
|
|||||||
// Check if ELF is the right kind.
|
// Check if ELF is the right kind.
|
||||||
if (elf_kind(e) != ELF_K_ELF) {
|
if (elf_kind(e) != ELF_K_ELF) {
|
||||||
DP("Unexpected ELF type!\n");
|
DP("Unexpected ELF type!\n");
|
||||||
|
elf_end(e);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Elf64_Ehdr *eh64 = elf64_getehdr(e);
|
Elf64_Ehdr *eh64 = elf64_getehdr(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user