diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2011-04-12 12:20:32 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2011-04-12 12:20:32 +0200 |
commit | baad03f0e1fe3bf27d52a425e0e374af6d1cf407 (patch) | |
tree | e86f0c3b393c801dd2f77c3fdadff8eb789712b1 /src/termcap.c | |
parent | e7974947bc66f311e3883bb19aec11f3fe4dc7f6 (diff) | |
download | emacs-baad03f0e1fe3bf27d52a425e0e374af6d1cf407.tar.gz |
Use xfree instead of free where appropriate (Bug#8437)
* charset.c (Fclear_charset_maps): Use xfree instead of free.
(Bug#8437)
* keyboard.c (parse_tool_bar_item): Likewise.
* sound.c (sound_cleanup, alsa_close): Likewise.
* termcap.c (tgetent): Likewise.
* xfns.c (x_default_font_parameter): Likewise.
* xsettings.c (read_and_apply_settings): Likewise.
Diffstat (limited to 'src/termcap.c')
-rw-r--r-- | src/termcap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/termcap.c b/src/termcap.c index 27a20a67ae1..5b71ad229d7 100644 --- a/src/termcap.c +++ b/src/termcap.c @@ -1,6 +1,6 @@ /* Work-alike for termcap, plus extra features. Copyright (C) 1985, 1986, 1993, 1994, 1995, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -468,15 +468,15 @@ tgetent (char *bp, const char *name) if (scan_file (term, fd, &buf) == 0) { close (fd); - free (buf.beg); + xfree (buf.beg); if (malloc_size) - free (bp); + xfree (bp); return 0; } /* Free old `term' if appropriate. */ if (term != name) - free (term); + xfree (term); /* If BP is malloc'd by us, make sure it is big enough. */ if (malloc_size) @@ -506,7 +506,7 @@ tgetent (char *bp, const char *name) } close (fd); - free (buf.beg); + xfree (buf.beg); if (malloc_size) bp = (char *) xrealloc (bp, bp1 - bp + 1); |