* buffer.c (init_buffer): Use realloc instead of xrealloc.
* gtkutil.c (free_widget_value): Use xfree instead of free.
This commit is contained in:
parent
56f2de103f
commit
8b1463121e
3 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue