From: Chip Salzenberg Date: Mon, 14 Apr 1997 12:00:00 +0000 (+1200) Subject: Fix for environment leak X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5ebf47976a508c997e1de5749c051409e17ebc2;p=p5sagit%2Fp5-mst-13.2.git Fix for environment leak (this is the same change as commit 114695e977a20e0c66aa94b08414017d929a3f66, but as applied) --- diff --git a/util.c b/util.c index 6e5ef47..cdb64ad 100644 --- a/util.c +++ b/util.c @@ -1350,6 +1350,7 @@ char *nam, *val; environ = tmpenv; /* tell exec where it is now */ } if (!val) { + Safefree(environ[i]); while (environ[i]) { environ[i] = environ[i+1]; i++;