mirror of
https://github.com/nginx/nginx.git
synced 2026-09-06 05:19:28 +00:00
Resolver: fixed possible use-after-free in worker on fast shutdown.
This commit is contained in:
parent
3294292b66
commit
523aee98fc
1 changed files with 4 additions and 0 deletions
|
|
@ -300,6 +300,10 @@ ngx_resolver_cleanup(void *data)
|
|||
#endif
|
||||
|
||||
if (r->event) {
|
||||
if (r->event->timer_set) {
|
||||
ngx_del_timer(r->event);
|
||||
}
|
||||
|
||||
ngx_free(r->event);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue