mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix leak of canceled events
This commit is contained in:
parent
61f7a8d3ca
commit
c693c60a54
1 changed files with 2 additions and 0 deletions
|
|
@ -1252,6 +1252,8 @@ void nsock_pool_add_event(struct npool *nsp, struct nevent *nse) {
|
|||
assert(nse->type >= 0 && nse->type < NSE_TYPE_MAX);
|
||||
event_dispatch_and_delete(nsp, nse, 1);
|
||||
// No need to call nevent_unref since we never added it to any lists!
|
||||
// However, we do need to keep ownership of the event object.
|
||||
gh_list_append(&nsp->free_events, &nse->nodeq_io);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue