mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 20:07:56 -04:00
Prevent reference leak of bufferevent if getaddrinfo fails.
This commit is contained in:
parent
b7f6e89ab9
commit
b7577868a8
@ -496,6 +496,7 @@ bufferevent_socket_connect_hostname(struct bufferevent *bev,
|
||||
} else {
|
||||
bufferevent_unsuspend_write_(bev, BEV_SUSPEND_LOOKUP);
|
||||
bufferevent_unsuspend_read_(bev, BEV_SUSPEND_LOOKUP);
|
||||
bufferevent_decref_(bev);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user