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
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++;