fix memory leave and hang when handle_error

This commit is contained in:
Rongsong Shen 2025-11-18 15:22:33 +08:00
parent e3946383f4
commit 26e3c21c87
4 changed files with 12 additions and 4 deletions

View file

@ -414,7 +414,7 @@ static int handle_output(endpoint_t* ep)
static int handle_error(endpoint_t* ep)
{
iomgr_t* iomgr = (iomgr_t*)ep->owner;
iomgr_t* iomgr = (iomgr_t*)ep->iomgr;
if (iomgr != NULL) {
iomgr_unmonitor(iomgr, ep);