From: daniels@hanoi.enet.dec.com (Bradford R. Daniels)
Subject: Re: VMS4.5 CRTL fstat does not free() malloc()ed memory (apparently)
Date: 14 Jun 90 20:53:50 GMT [thread overview]
Message-ID: <12498@shlump.nac.dec.com> (raw)
In-Reply-To: 1990Jun6.233823.16060@murdoch.acc.Virginia.EDU
The problem is that fstat() calls getenv(), which allocates memory for
its return value. There is a fixed version of getenv() which keeps
around old results so that it doesn't need to allocate memory every
time. It will be available in "a future release of VMS", no doubt...
Your work-around is the best solution for now.
- Brad
-----------------------------------------------------------------
Brad Daniels | Digital Equipment Corp. almost
DEC Software Devo | definitely wouldn't approve of
"VAX C RTL Whipping Boy" | anything I say here...
prev parent reply other threads:[~1990-06-14 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-06-06 23:38 VMS4.5 CRTL fstat does not free() malloc()ed memory (apparently) Steve D. Majewski
1990-06-14 20:53 ` Bradford R. Daniels [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox