Skip to contentSkip to conversation

util/async: File descriptor leak in aio_context_unref()?

DISCUSSION Tuguoyi 1 participant 1 message Jan 19, 2020

lore
Share & tools
lore

Tuguoyi

author
#0 lore raw

OK, I got it, it will be released in aio_ctx_finalize(). Please ignore this mail.

Quoted 17 lines

-----Original Message-----
From: tuguoyi (Cloud)
Sent: Sunday, January 19, 2020 4:15 PM
To: 'Stefan Hajnoczi' <[email protected]>; 'Fam Zheng' <[email protected]>; '[email protected]' <[email protected]>
Cc: '[email protected]' <[email protected]>; changlimin (Cloud) <[email protected]>; chengchiwen (Cloud) <[email protected]>; wangyongqing (Cloud) <[email protected]>; wangyong (Cloud) <[email protected]>
Subject: util/async: File descriptor leak in aio_context_unref()?

In aio_context_new(), the @notifier variable will be initialized, but it don't get cleaned up in aio_context_unref() when reference count reaches to 0, it will cause file descriptor leak.
--
Best regards,
Guoyi