mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 01:12:40 +08:00
Request cleanup code unified, no functional changes.
Additionally, detaching a cleanup chain from a request is a bit more resilent to various bugs if any.
This commit is contained in:
parent
2b0dba578f
commit
4b189002af
@ -3343,10 +3343,15 @@ ngx_http_free_request(ngx_http_request_t *r, ngx_int_t rc)
|
||||
return;
|
||||
}
|
||||
|
||||
for (cln = r->cleanup; cln; cln = cln->next) {
|
||||
cln = r->cleanup;
|
||||
r->cleanup = NULL;
|
||||
|
||||
while (cln) {
|
||||
if (cln->handler) {
|
||||
cln->handler(cln->data);
|
||||
}
|
||||
|
||||
cln = cln->next;
|
||||
}
|
||||
|
||||
#if (NGX_STAT_STUB)
|
||||
|
Loading…
Reference in New Issue
Block a user