diff options
author | Florian Festi <ffesti@redhat.com> | 2020-07-21 10:45:20 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2021-03-22 12:12:12 +0200 |
commit | 3e367defe17e2c1fa20548296c92d27b6d32ffde (patch) | |
tree | 1c3ea9f7c6fc24ea0ffe2957ec2e048f7e50e5b2 | |
parent | f2a21fa2d9bf1bcdc706bcbbf7851321aceda506 (diff) | |
download | rpm-3e367defe17e2c1fa20548296c92d27b6d32ffde.tar.gz |
Always close libelf handle (#1313)
Otherwise executables that are not proper elf files are leaking libelf
handles. This results in file being left open (mmap'ed) and fails the
build on NFS as those files can't be deleted properly there.
Resolves: rhbz#1840728
See also: https://bugzilla.redhat.com/show_bug.cgi?id=1840728
(cherry picked from commit 38c03ddb18e86c84d89af695f72442d8365eb64e)
-rw-r--r-- | build/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c index 6dfd801c8..9ef13c6e8 100644 --- a/build/files.c +++ b/build/files.c @@ -1929,8 +1929,8 @@ static int generateBuildIDs(FileList fl, ARGV_t *files) if (terminate) rc = 1; } - elf_end (elf); } + elf_end (elf); close (fd); } } |