mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 16:59:54 +00:00
commit
4a9ce554c1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user