From a7e0f4fa3fbdec49f49b05ea644a8995f1257add Mon Sep 17 00:00:00 2001 From: zero_wangdu Date: Tue, 8 Jun 2021 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E6=88=90=E5=8A=9F=E5=88=9B?= =?UTF-8?q?=E5=BB=BA,=20=E4=BF=AE=E6=94=B9=E4=B8=BAtrue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/common/src/hdf_attribute.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/common/src/hdf_attribute.c b/core/common/src/hdf_attribute.c index 83b609fd2..0d61c4039 100644 --- a/core/common/src/hdf_attribute.c +++ b/core/common/src/hdf_attribute.c @@ -311,7 +311,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) continue; } if (strcmp(deviceInfo->moduleName, moduleName) == 0) { - deviceInfo->isDynamic = true; + //deviceInfo->isDynamic = true; deviceNodeInfo->hostId = deviceInfo->hostId; deviceNodeInfo->deviceId = hostClnt->devCount; deviceNodeInfo->policy = deviceInfo->policy; @@ -329,6 +329,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) OsalMemFree(svcName); break; } + deviceInfo->isDynamic = true; // svcName 内存成功创建, 修改为true deviceNodeInfo->svcName = svcName; HdfSListAdd(hostClnt->deviceInfos, &deviceNodeInfo->node); hostClnt->devCount++; -- Gitee