mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-30 12:20:43 +00:00
fix the lock resouce leak
Signed-off-by: breakfei1 <zhangshen6@huawei.com>
This commit is contained in:
parent
398f73bd73
commit
6ed20b51b8
@ -428,6 +428,7 @@ static int32_t TransTdcProcAllData(int32_t channelId)
|
||||
}
|
||||
uint32_t bufLen = node->w - node->data;
|
||||
if (bufLen == 0) {
|
||||
SoftBusMutexUnlock(&g_tcpDataList->lock);
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
if (bufLen < DC_DATA_HEAD_SIZE) {
|
||||
|
Loading…
Reference in New Issue
Block a user