Re: [PATCH] iommufd/selftest:fix a resource leak
From: Jason Gunthorpe
Date: Wed Sep 04 2024 - 12:10:47 EST
On Wed, Sep 04, 2024 at 04:08:06AM +0800, Liu Jing wrote:
> If the file fails to open, not only return return1 but also close the file descriptor,otherwise resource
> leak will occur
Why doesn't FIXURE_TEARDOWN do this?
Jason