]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libintl: Fix pointer use after free.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Sep 2017 09:30:59 +0000 (11:30 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Sep 2017 09:30:59 +0000 (11:30 +0200)
* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Perform the same lock
deallocation outside libc as in libc (patch from 2013-09-06).

gettext-runtime/intl/loadmsgcat.c

index 42465d19f0107efaba6e20d7d08ff3a6590966ed..beb52a3acc542e3fae22b73e28df1a62a979823a 100644 (file)
@@ -1307,6 +1307,8 @@ _nl_load_domain (struct loaded_l10nfile *domain_file,
     {
 #ifdef _LIBC
       __libc_rwlock_fini (domain->conversions_lock);
+#else
+      gl_rwlock_destroy (domain->conversions_lock);
 #endif
       goto invalid;
     }