update core/transmission/trans_channel/common/src/trans_lane_pending_ctl.c.

Signed-off-by: 姚望 <yaopwang@huawei.com>
This commit is contained in:
姚望 2024-11-11 07:55:26 +00:00 committed by Gitee
parent 2f07ea24f8
commit e56212cded
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1672,7 +1672,7 @@ int32_t TransAuthWithParaAddLaneReqToList(uint32_t laneReqId, const char *sessio
return SOFTBUS_OK;
ERR_EXIT:
SoftBusFree(item->sessionName);
item->sessionName = NULL;
item->sessionName = NULL;
SoftBusFree(item);
return errCode;
}
@ -1697,7 +1697,7 @@ int32_t TransAuthWithParaDelLaneReqById(uint32_t laneReqId)
ListDelete(&(laneItem->node));
g_authWithParaAsyncReqLaneList->cnt--;
SoftBusFree(laneItem->sessionName);
laneItem->sessionName = NULL;
laneItem->sessionName = NULL;
SoftBusFree(laneItem);
laneItem = NULL;
(void)SoftBusMutexUnlock(&(g_authWithParaAsyncReqLaneList->lock));