about summary refs log tree commit diff
path: root/intl/dcigettext.c
diff options
context:
space:
mode:
Diffstat (limited to 'intl/dcigettext.c')
-rw-r--r--intl/dcigettext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index 944983decc..d2b903c3f3 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -495,6 +495,7 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
 	  /* We cannot get the current working directory.  Don't signal an
 	     error but simply return the default string.  */
 	  FREE_BLOCKS (block_list);
+	  __libc_rwlock_unlock (_nl_state_lock);
 	  __set_errno (saved_errno);
 	  return (plural == 0
 		  ? (char *) msgid1