Commit 8b146312 authored by Andreas Schwab's avatar Andreas Schwab

* buffer.c (init_buffer): Use realloc instead of xrealloc.

* gtkutil.c (free_widget_value): Use xfree instead of free.
parent 56f2de10
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
......
......@@ -5343,7 +5343,9 @@ init_buffer ()
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';
}
......
......@@ -224,7 +224,7 @@ free_widget_value (wv)
{
/* When the number of already allocated cells is too big,
We free it. */
free (wv);
xfree (wv);
malloc_cpt--;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment