Re: resource leak in librdmacm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2020 at 11:23:02PM +0800, Honggang LI wrote:

> void test_fini(void)
> {


> 	if (handle)
> 		dlclose(handle);
                ^^^^^^^
> 	handle = NULL;

In case we did not call dlclose, there will be only one file descriptor
leak. It will reduce the file descriptor leak.

Does that imply librdamcm was designed to load once and only unload when
process exit?

thanks





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux