* intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock

when we cannot recode the message.
This commit is contained in:
Ulrich Drepper 2007-10-13 17:06:29 +00:00
parent 7e39d8025d
commit 656f02ce5b
2 changed files with 6 additions and 0 deletions

View File

@ -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]

View 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;
}