From 3cb65b0e936f758ac16004af382569ba0d934310 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 25 Feb 2000 13:14:25 +0000 Subject: [PATCH] (Fload): Use `xfree' instead of `free'. (init_obarray): Use `xmalloc' instead of `malloc'. --- src/ChangeLog | 5 ++++- src/lread.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index dbdd1515605..e3353dd31ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-02-25 Gerd Moellmann + * lread.c (Fload): Use `xfree' instead of `free'. + (init_obarray): Use `xmalloc' instead of `malloc'. + * window.c (Fset_window_buffer): Set WINDOW to the window after decoding. (coordinates_in_window): Take frame's internal border width @@ -40,7 +43,7 @@ 2000-02-22 Eli Zaretskii - * frame.c (Fdelete_frame): Don't let echo_area_window to remain on + * frame.c (Fdelete_frame): Don't let echo_area_window remain on a deleted frame. 2000-02-21 Gerd Moellmann diff --git a/src/lread.c b/src/lread.c index 699c7fc2ef9..d6402b38da3 100644 --- a/src/lread.c +++ b/src/lread.c @@ -734,7 +734,7 @@ Return t if file exists.") saved_doc_string_size = 0; if (prev_saved_doc_string) - free (prev_saved_doc_string); + xfree (prev_saved_doc_string); prev_saved_doc_string = 0; prev_saved_doc_string_size = 0; @@ -2915,7 +2915,7 @@ init_obarray () staticpro (&Qvariable_documentation); read_buffer_size = 100 + MAX_MULTIBYTE_LENGTH; - read_buffer = (char *) malloc (read_buffer_size); + read_buffer = (char *) xmalloc (read_buffer_size); } void -- 2.39.5