* gtkutil.c (free_widget_value): Use xfree instead of free.
+2008-12-22 Andreas Schwab <schwab@suse.de>
+
+ * buffer.c (init_buffer): Use realloc instead of xrealloc.
+ * gtkutil.c (free_widget_value): Use xfree instead of free.
+
2008-12-22 Martin Rudalics <rudalics@gmx.at>
* frame.c (delete_frame): New function derived from
if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
{
/* Grow buffer to add directory separator and '\0'. */
- pwd = (char *) xrealloc (pwd, len + 2);
+ pwd = (char *) realloc (pwd, len + 2);
+ if (!pwd)
+ fatal ("`get_current_dir_name' failed: %s\n", strerror (errno));
pwd[len] = DIRECTORY_SEP;
pwd[len + 1] = '\0';
}
{
/* When the number of already allocated cells is too big,
We free it. */
- free (wv);
+ xfree (wv);
malloc_cpt--;
}
else