From: Mark Wielaard Date: Sun, 26 Feb 2012 12:14:32 +0000 (+0100) Subject: elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini. X-Git-Tag: elfutils-0.154~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=495501611820a9d5c462fda56045c146f7b922d7;p=thirdparty%2Felfutils.git elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini. Reported-by: Kurt Roeckx --- diff --git a/libelf/ChangeLog b/libelf/ChangeLog index d88e2fe53..09af05dea 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,7 @@ +2011-02-26 Mark Wielaard + + * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini. + 2011-01-05 Jan Kratochvil * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Fix off64_t overflow diff --git a/libelf/elf_end.c b/libelf/elf_end.c index 5112eaea4..6392eaf7c 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. */