fix the lock resouce leak

Signed-off-by: breakfei1 <zhangshen6@huawei.com>
This commit is contained in:
breakfei1 2022-09-09 17:15:19 +08:00
parent 398f73bd73
commit 6ed20b51b8

View File

@ -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) {