Signed-off-by: Aaron Merey <[email protected]>
---
 libelf/elf_rand.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libelf/elf_rand.c b/libelf/elf_rand.c
index c08eadc6..be5a39c2 100644
--- a/libelf/elf_rand.c
+++ b/libelf/elf_rand.c
@@ -54,6 +54,7 @@ elf_rand (Elf *elf, size_t offset)
     {
       /* Mark the archive header as unusable.  */
       elf->elf_ar_hdr.ar_name = NULL;
+      rwlock_unlock (elf->lock);
       return 0;
     }
 
-- 
2.56.0

Reply via email to