summaryrefslogtreecommitdiffstats
path: root/libelf/elf_end.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2012-02-26 13:14:32 +0100
committerMark Wielaard <[email protected]>2012-02-26 13:14:32 +0100
commit495501611820a9d5c462fda56045c146f7b922d7 (patch)
tree24761246b96088719f95b879af2f6e0dafa2ba9b /libelf/elf_end.c
parent5e56a1efb6aadc49c3e814505cb22473395e5265 (diff)
elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
Reported-by: Kurt Roeckx <[email protected]>
Diffstat (limited to 'libelf/elf_end.c')
-rw-r--r--libelf/elf_end.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libelf/elf_end.c b/libelf/elf_end.c
index 5112eaea..6392eaf7 100644
--- a/libelf/elf_end.c
+++ b/libelf/elf_end.c
@@ -241,6 +241,7 @@ elf_end (elf)
munmap (elf->map_address, elf->maximum_size);
}
+ rwlock_unlock (elf->lock);
rwlock_fini (elf->lock);
/* Finally the descriptor itself. */