+2007-08-03 Jakub Jelinek <jakub@redhat.com>
+
+ * dcigettext.c (_nl_find_msg): Free encoding if __gconv_open failed.
+ * finddomain.c (_nl_find_domain): Free normalized_codeset on failure.
+
2007-07-26 Jakub Jelinek <jakub@redhat.com>
* gettextP.h (struct loaded_domain): Change plural to const
nothing to do. Otherwise do not use the
translation at all. */
if (__builtin_expect (r != __GCONV_NULCONV, 1))
- return NULL;
+ {
+ free ((char *) encoding);
+ return NULL;
+ }
convd->conv = (__gconv_t) -1;
}
if (retval == NULL)
/* This means we are out of core. */
- return NULL;
+ goto out;
if (retval->decided <= 0)
_nl_load_domain (retval, domainbinding);
if (alias_value != NULL)
free (locale);
+out:
/* The space for normalized_codeset is dynamically allocated. Free it. */
if (mask & XPG_NORM_CODESET)
free ((void *) normalized_codeset);