1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

fix potential file descriptor leak with DEBUG_CGI

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@930955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2010-04-05 20:36:23 +00:00
parent 26d31ba35b
commit 2c4ea84eb8

View File

@@ -411,6 +411,7 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
fprintf(dbg, "Environment: \n");
for (i = 0; env[i]; ++i)
fprintf(dbg, "'%s'\n", env[i]);
fclose(dbg);
#endif
/* Transmute ourselves into the script.
@@ -480,9 +481,6 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
}
}
}
#ifdef DEBUG_CGI
fclose(dbg);
#endif
return (rc);
}