develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu

From:
Ilya Zakharevich
Date:
November 17, 1999 16:13
Subject:
Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu
Message ID:
19991117191318.A3623@monk.mps.ohio-state.edu
On Thu, Nov 18, 1999 at 01:08:34AM +0100, Joerg Schumacher wrote:
> > How can it be that this is unallocated?
> 
> Since it has never been malloc()ed by perl due to the weak test in 
> my_setenv()?
> 
> > Judging by what you wrote, you are running some old version of Perl,
> > such as 5.005_03.  
> 
> This is the stable version, can't be that old?
> 
> > In 5.005_50 I can see that the only Safefree() is
> > done on environ[i].  Due to documentation of putenv() I can see,
> > environ[i] *should be* malloced.
> 
> But the free() is called with the pointer to a memory block which has
> never been malloc()'ed by perl.  

You look utterly confused.  First you claim that this is not a problem
with several mismatched malloc()s, now you say that it is.

Please decide which way you want to argue first.  All you write
confirms what we were explaining you several times: your Perl is using
Perl's malloc(), and your patch has no relationship to how things happen.

Ilya



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About