This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Further observations regarding alloca on i586-pc-linux-gnu
- To: nyap at garban dot com (Noel Yap)
- Subject: Re: Further observations regarding alloca on i586-pc-linux-gnu
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 26 Aug 98 10:55:47 PDT
- Cc: martin at mira dot isdn dot cs dot tu-berlin dot de, pommnitz at darmstadt dot gmd dot de, egcs at cygnus dot com
> > You did not say how long you need the memory: If you need automatic
> > deallocation when the caller of f returns, you can return an auto_ptr
> > from f.
>
> How does it know when to deallocate the memory?
The destructor deallocates the memory.