* lib/localcharset.c (get_charset_aliases): Remove NULL test before
calling free().
Suggested by Simon Josefsson <simon@josefsson.org>.
+2011-02-28 Bruno Haible <bruno@clisp.org>
+
+ localcharset: Assume ANSI C behaviour of free().
+ * lib/localcharset.c (get_charset_aliases): Remove NULL test before
+ calling free().
+ Suggested by Simon Josefsson <simon@josefsson.org>.
+
2011-02-28 Corinna Vinschen <vinschen@redhat.com> (tiny change)
Charles Wilson <cygwin@cwilson.fastmail.fm> (tiny change)
Bruno Haible <bruno@clisp.org> (tiny change)
{
/* Out of memory. */
res_size = 0;
- if (old_res_ptr != NULL)
- free (old_res_ptr);
+ free (old_res_ptr);
break;
}
strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);