Mercurial > emacs
changeset 30360:92f92a541686
(Fprevious_overlay_change): Avoid memory leak.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 21 Jul 2000 14:33:35 +0000 |
parents | 02bc09619347 |
children | e1ea6e214873 |
files | src/buffer.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Fri Jul 21 13:53:20 2000 +0000 +++ b/src/buffer.c Fri Jul 21 14:33:35 2000 +0000 @@ -3613,14 +3613,14 @@ CHECK_NUMBER_COERCE_MARKER (pos, 0); - len = 10; - overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); - /* At beginning of buffer, we know the answer; avoid bug subtracting 1 below. */ if (XINT (pos) == BEGV) return pos; + len = 10; + overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); + /* Put all the overlays we want in a vector in overlay_vec. Store the length in len. prevpos gets the position of the previous change. */