Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2015 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a9922882a355255dd032 to your computer and use it in GitHub Desktop.
Save anonymous/a9922882a355255dd032 to your computer and use it in GitHub Desktop.
diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
index ecfc9be..b6f3203 100644
--- a/sapi/fpm/fpm/fpm_main.c
+++ b/sapi/fpm/fpm/fpm_main.c
@@ -1911,12 +1911,12 @@ fastcgi_request_done:
}
fpm_request_end();
- fpm_log_write(NULL);
efree(SG(request_info).path_translated);
SG(request_info).path_translated = NULL;
php_request_shutdown((void *) 0);
+ fpm_log_write(NULL);
requests++;
if (max_requests && (requests == max_requests)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment