Date: Thu, 27 Aug 1998 15:18:59 -0400 (EDT) Message-Id: <199808271918.PAA16748@delorie.com> From: DJ Delorie To: califax AT wupperonline DOT de CC: djgpp AT delorie DOT com In-reply-to: <35e59b79.420696@news.space.net> (califax@wupperonline.de) Subject: Re: question to malloc and free Precedence: bulk > when I allocate a memory block with malloc and release it with free, > how does free know how much it has to release? Stores malloc > some information about the block? The actual block in memory consists of a few extra words just before what you get your hand on. That extra bit contains the size of the block, and maybe some other information if you're using a malloc debugger. Why not download the source and see for yourself?