2006-10-26 Pascal Terjan <pterjan@linuxfr.org>
* glib/libcharset/localcharset.c: Fix small leak on failed
realloc in _g_locale_get_charset_aliases (#338582)
+2006-10-26 Pascal Terjan <pterjan@linuxfr.org>
+
+ * glib/libcharset/localcharset.c: Fix small leak on failed
+ realloc in _g_locale_get_charset_aliases (#338582)
+
2006-10-16 Behdad Esfahbod <behdad@gnome.org>
* glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS). (#362543,
}
else
{
+ char * p = res_ptr;
res_size += l1 + 1 + l2 + 1;
res_ptr = (char *) realloc (res_ptr, res_size + 1);
+ if (res_ptr == NULL) {
+ free(p);
+ }
}
if (res_ptr == NULL)
{