[PATCH] Only copy basic Windows environment (was Re: Pending OpenSSH release, call for testing.)

Corinna Vinschen vinschen at redhat.com
Sat Aug 14 02:57:45 EST 2004


On Aug 13 11:20, Ben Lindstrom wrote:
> On Fri, 13 Aug 2004, Corinna Vinschen wrote:
> 
> [..]
> > +free_windows_environment(char **p)
> > +{
> > +	xfree(p);
> >  }
> >
> 
> Memory leak galore... please free each pointer on that pointer list.

Nope.  These pointers are pointers into the global environ array.

Corinna

-- 
Corinna Vinschen
Cygwin Co-Project Leader
Red Hat, Inc.




More information about the openssh-unix-dev mailing list