]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
authorUlrich Drepper <drepper@redhat.com>
Sat, 13 Oct 2007 17:06:29 +0000 (17:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 13 Oct 2007 17:06:29 +0000 (17:06 +0000)
when we cannot recode the message.

ChangeLog
intl/dcigettext.c

index 99ae63e8209cdfdb3702f927318df59953c048b1..ede6541374b6968c93bab7078fd55007274ed9e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-13  Bruno Haible  <bruno@clisp.org>
+
+       * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
+       when we cannot recode the message.
+
 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #4359]
index 55dcaabd8061cdf97380966a813e1c7f7a587eea..a2cd8014c3402830375557069e96c5a37f978cfe 100644 (file)
@@ -974,6 +974,7 @@ _nl_find_msg (domain_file, domainbinding, msgid, convert, lengthp)
                           translation at all.  */
                        if (__builtin_expect (r != __GCONV_NULCONV, 1))
                          {
+                           __libc_rwlock_unlock (domain->conversions_lock);
                            free ((char *) encoding);
                            return NULL;
                          }