From a21260d97c1c2b15736e5c99af4383c9ebc18903 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 17 Feb 2000 15:21:58 +0000 Subject: [PATCH] (Fget_buffer_create, Fmake_indirect_buffer): Use allocate_buffer instead of xmalloc. --- src/buffer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 2fb9fefd5e9..59487962008 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -330,7 +330,7 @@ The value is never nil.") if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); @@ -427,8 +427,7 @@ NAME should be a string which is not the name of an existing buffer.") if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); - + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); if (XBUFFER (base_buffer)->base_buffer) -- 2.39.5