[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-tech
Subject:    Re: How important is it to free() on run once programs?
From:       Theo de Raadt <deraadt () cvs ! openbsd ! org>
Date:       2005-08-27 12:50:10
Message-ID: 200508271250.j7RCoATf007291 () cvs ! openbsd ! org
[Download RAW message or body]

> Theo de Raadt wrote:
> > Doing free() before exit() is bad style.
> >
> > It is not needed.
> >
> > But what I find more amusing is that on some system malloc's
> > such things trigger exploitability of previous heap damage.
> 
> It's mighty confusing indeed.
> 
> But exit(3) does not mention that exit() also frees up the memory,
> if I understood Claudio right. Would it be nice to add it the
> manpage?

No, no, no, it will *NOT* be added to the manual page!

It terminates the bloody process!

You seem to be seriously confused.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic