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

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

Ilya Zakharevich
November 17, 1999 16:13
Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About