]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
authorMark Wielaard <mjw@redhat.com>
Sun, 26 Feb 2012 12:14:32 +0000 (13:14 +0100)
committerMark Wielaard <mjw@redhat.com>
Sun, 26 Feb 2012 12:14:32 +0000 (13:14 +0100)
Reported-by: Kurt Roeckx <kurt@roeckx.be>
libelf/ChangeLog
libelf/elf_end.c

index d88e2fe531380c56f9aafd278525965ef53eec78..09af05dea8147bad745129cbb016781d785ecedd 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-26  Mark Wielaard  <mjw@redhat.com>
+
+       * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
+
 2011-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Fix off64_t overflow
index 5112eaea41157c11f3206f149042411094bf3bfb..6392eaf7ca746e226ea04c4c74bd1a2bdb695a5f 100644 (file)
@@ -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.  */