diff options
author | Sven Verdoolaege <skimo@breughel.ufsia.ac.be> | 1997-04-15 10:32:46 +0200 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-04-15 00:00:00 +1200 |
commit | 114695e977a20e0c66aa94b08414017d929a3f66 (patch) | |
tree | 42972c3be785e9fa28624a5708d1e5648c5155a2 | |
parent | 9010f3dde9d2f67a11bc3a0f3506440c77114d6b (diff) | |
download | perl-114695e977a20e0c66aa94b08414017d929a3f66.tar.gz |
Fix for environment leak
This patch fixes a leak in my_setenv.
I know this is close to the release of 5.004, but this is
relatively important for long running FastCGI programs.
I can prove the correctness :-)
p5p-msgid: 19970415103246.NN46698@breughel.ufsia.ac.be
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1350,6 +1350,7 @@ char *nam, *val; environ = tmpenv; /* tell exec where it is now */ } if (!val) { + if (environ[i]) Safefree(environ[i]); while (environ[i]) { environ[i] = environ[i+1]; i++; |