Date: Tue, 24 Mar 1998 11:14:56 +0100 (MET) From: Olivier Perron To: djgpp AT delorie DOT com Subject: flex never frees some buffers !? In-Reply-To: <9803230855.AA27411@axe.bre.da> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Hi, I've just discovered that flex (flex254b) never frees the 2 following buffers: - yy_current_buffer->yy_ch_buf (size: approx. 16 kbytes) - yy_current_buffer (size: 40 bytes) When the program that use flex exits, it leaves ~16 kbytes of allocated memory which is never freed. On unix it is not a problem because when a process die any unfreed memory that was allocated by the process will be freed by the kernel. But on DOS machines, this unfreed memory still remain as allocated and is definitivly lost until next reboot. So if you want to recover those 2 buffer, you have to add a "clean-up" procedure on program's exit in order to free them. Is it a known problem/bug or did I miss something ? Olivier.