diff --git a/core/manager/src/devmgr_service.c b/core/manager/src/devmgr_service.c index da78d39e282bbac2143bb2bc1def3f60dfdaa5b2..81a6c8af04ea4dacd757e22f07bb6eba35056af7 100644 --- a/core/manager/src/devmgr_service.c +++ b/core/manager/src/devmgr_service.c @@ -319,8 +319,8 @@ void DevmgrServiceRelease(struct HdfObject *object) struct DevHostServiceClnt *hostClnt = NULL; struct DevHostServiceClnt *hostClntTmp = NULL; DLIST_FOR_EACH_ENTRY_SAFE(hostClnt, hostClntTmp, &devmgrService->hosts, struct DevHostServiceClnt, node) { - DevHostServiceClntDelete(hostClnt); DListRemove(&hostClnt->node); + DevHostServiceClntDelete(hostClnt); } OsalMutexDestroy(&devmgrService->devMgrMutex);