Date: Wed, 25 Mar 1998 15:51:33 +0300 (IDT) From: Eli Zaretskii To: Olivier Perron cc: djgpp AT delorie DOT com Subject: Re: flex never frees some buffers !? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 25 Mar 1998, Olivier Perron wrote: > Just to know, so that I can't do any mistakes any more: is this behaviour > typical to DJGPP programs + CWSDPMI or is it a normal behaviour for any > programs (not only DJGPP ones) and with any DPMI providers (like Windows). DOS memory (below 1MB mark) is freed automatically by DOS. Memory above 1MB needs to be freed by the same method that you allocated it. For DJGPP programs, CWSDPMI and the startup/exit code do that, so your code doesn't have to.