On Wed, Oct 06, 2004 at 10:19:17AM -0300, Luis Hernán Otegui wrote:
> jumps, but with SA keeping the memory, and never releasing it.

Well, there's really no way to do that at the application level -- it's up to
the OS.  Typically what happens is:

- process wants X memory
- process gets X memory allocated from kernel
- process uses X memory
- process frees (free()) X memory
- kernel keeps memory allocated to process figuring it'll use it again (and to
  avoid all the overhead of cleanup/reallocation, etc.)

So the goal needs to be: don't use the memory in the first place.  Anything
after that is only fixable by restarting the process.

-- 
Randomly Generated Tagline:
"But these go to 11..."               - Spinal Tap

Attachment: pgpVzEp5Ony1P.pgp
Description: PGP signature

Reply via email to