[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: library/1284: setenv()/unsetenv() memory leak



The following reply was made to PR library/1284; it has been noted by GNATS.

From: Phil Pennock <Phil_(_dot_)_Pennock_(_at_)_globnix_(_dot_)_org>
To: Theo de Raadt <deraadt_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
Cc: gnats_(_at_)_openbsd_(_dot_)_org
Subject: Re: library/1284: setenv()/unsetenv() memory leak
Date: Wed, 21 Jun 2000 18:50:53 +0200

 Typing away merrily, Theo de Raadt produced the immortal words:
 > This is not a bug.  That is how setenv() is supposed to work.
 
 Could it then be documented in the manual page please, so that it's
 clear that repeated invocations will unavoidably leak memory?
 
 Also, this means that putenv() is not compliant with the SingleUNIX
 spec; but I don't know if compliancy with that is seen as important.
 -- 
 Phil Pennock
 "We've got a patent on the conquering of a country through the use of force.
  We believe in world peace through extortionate license fees."  -Bluemeat