diff options
| author | Ulf Hermann <[email protected]> | 2019-01-09 13:57:31 +0100 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2019-01-09 13:57:31 +0100 |
| commit | bc774f62436c4fe5082f0a70c6620fa0fdf823a9 (patch) | |
| tree | 07963f45b2cdaccf12281712e2eef179dbce1fee /src/size.c | |
| parent | 5da108a40dd24c7d3e4183ec9ae1904bb3f01575 (diff) | |
| parent | 4ea9a2db164caadf836a65d5cdffb09a2d5a37ce (diff) | |
Merge tag 'elfutils-0.175'
elfutils 0.175 release
Change-Id: I409f41767af349d0521351dd733879ad31c65aab
Diffstat (limited to 'src/size.c')
| -rw-r--r-- | src/size.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -374,8 +374,10 @@ handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) INTERNAL_ERROR (fname); } - if (unlikely (elf_end (elf) != 0)) - INTERNAL_ERROR (fname); + /* Only close ELF handle if this was a "top level" ar file. */ + if (prefix == NULL) + if (unlikely (elf_end (elf) != 0)) + INTERNAL_ERROR (fname); return result; } |
