!5727 发现模块检视意见修改

Merge pull request !5727 from 王瑞峰/master
This commit is contained in:
openharmony_ci 2024-04-17 01:26:58 +00:00 committed by Gitee
commit 4a9ce554c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -74,8 +74,6 @@ static int32_t FillRspSettings(NSTACKX_ResponseSettings *settings, const DeviceI
}
return SOFTBUS_OK;
EXIT:
SoftBusFree(settings->businessData);
settings->businessData = NULL;
return SOFTBUS_STRCPY_ERR;
}
@ -96,8 +94,6 @@ int32_t DiscCoapSendRsp(const DeviceInfo *deviceInfo, uint8_t bType)
if (ret != SOFTBUS_OK) {
DISC_LOGE(DISC_COAP, "disc send response failed, ret=%{public}d", ret);
}
SoftBusFree(settings->businessData);
settings->businessData = NULL;
SoftBusFree(settings);
return ret;
}