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

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

From:
M.J.T. Guy
Date:
November 19, 1999 04:39
Subject:
Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu
Message ID:
E11onJU-0007Jo-00@taurus.cus.cam.ac.uk
Nick Ing-Simmons <nik@tiuk.ti.com> wrote
> Thus as far as I can see unless we keep a hash of "things we malloc'ed"
> and check for match we should not free() anything in environ.

Exactly.    And therefore, since we don't want memory leaks, we must
keep a hash.

What would happen about changes to %ENV from XS code?    Or would the magic
just "do the right thing"?


Mike Guy



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