(_nl_find_msg): Unlock the conversions_lock when we cannot recode the message.
authordrepper <drepper>
Sat, 13 Oct 2007 17:05:56 +0000 (17:05 +0000)
committerdrepper <drepper>
Sat, 13 Oct 2007 17:05:56 +0000 (17:05 +0000)
intl/dcigettext.c

index 55dcaab..a2cd801 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;
                          }