Description:security handling

Feature or Bugfix:Bugfix
Binary Source:NA

Signed-off-by: sun-jiashun-123 <sunjiashun@huawei.com>
This commit is contained in:
sun-jiashun-123 2024-11-11 10:51:00 +08:00
parent af1a4366a1
commit 9a7c3a9208

View File

@ -852,6 +852,7 @@ int32_t LnnSetMediumParamBySpecificType(const LnnHeartbeatMediumParam *param)
if (memcpy_s(paramMgr->param, sizeof(LnnHeartbeatMediumParam), param, sizeof(LnnHeartbeatMediumParam)) != EOK) {
LNN_LOGE(LNN_HEART_BEAT, "HB set medium param memcpy_s err");
SoftBusFree(paramMgr->param);
paramMgr->param = NULL;
(void)SoftBusMutexUnlock(&g_hbStrategyMutex);
return SOFTBUS_MEM_ERR;
}