From 684c9eebe52be2f8e7ef05df794f5213b5858555 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 6 Mar 2001 13:00:40 +0000 Subject: make the parser use real memory for the ecbuf to avoid having hrealloc() throw away lots of memory (13576) --- Src/lex.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/lex.c') diff --git a/Src/lex.c b/Src/lex.c index 322bb9abe..de58ade7a 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -270,6 +270,7 @@ lexsave(void) inredir = 0; hdocs = NULL; histactive = 0; + ecbuf = NULL; ls->next = lstack; lstack = ls; @@ -318,6 +319,8 @@ lexrestore(void) hwbegin = lstack->hwbegin; hwend = lstack->hwend; addtoline = lstack->addtoline; + if (ecbuf) + zfree(ecbuf, eclen); eclen = lstack->eclen; ecused = lstack->ecused; ecnpats = lstack->ecnpats; -- cgit 1.4.1