#ifdef ZTS
tsrm_shutdown();
#endif
+ free(bindpath);
return FAILURE;
}
if (php_request_startup() == FAILURE) {
SG(server_context) = NULL;
php_module_shutdown();
+ free(bindpath);
return FAILURE;
}
if (no_headers) {
if (php_request_startup() == FAILURE) {
SG(server_context) = NULL;
php_module_shutdown();
+ free(bindpath);
return FAILURE;
}
SG(headers_sent) = 1;
#ifdef ZTS
tsrm_shutdown();
#endif
+ free(bindpath);
return FAILURE;
}
}
requests++;
if (max_requests && (requests == max_requests)) {
fcgi_finish_request(request, 1);
- if (bindpath) {
- free(bindpath);
- }
+ free(bindpath);
if (max_requests != 1) {
/* no need to return exit_status of the last request */
exit_status = 0;