From: Weili Qian qianweili@huawei.com
The dlclose() parameter must be 'dlhandle' instead of 'dlnode'. Modify the input parameter of the function.
Signed-off-by: Weili Qian qianweili@huawei.com --- wd_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wd_util.c b/wd_util.c index d8d6482..2b4a53c 100644 --- a/wd_util.c +++ b/wd_util.c @@ -2033,7 +2033,7 @@ void wd_dlclose_drv(void *dlh_list) while (dlhead) { dlnode = dlhead; dlhead = dlhead->next; - dlclose(dlnode); + dlclose(dlnode->dlhandle); free(dlnode); } }