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