mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 00:39:52 +00:00
!8430 修复加锁失败后未释放匿名化pkgname
Merge pull request !8430 from wangrui/OpenHarmony-4.1-Release
This commit is contained in:
commit
39cd758c43
@ -149,12 +149,12 @@ static int32_t TryUpdateStartTimeSyncReq(TimeSyncReqInfo *info, const StartTimeS
|
||||
{
|
||||
StartTimeSyncReq *item = NULL;
|
||||
|
||||
char *anonyPkgName = NULL;
|
||||
Anonymize(startReq->pkgName, &anonyPkgName);
|
||||
if (SoftBusMutexLock(&g_startReqListLock) != SOFTBUS_OK) {
|
||||
LNN_LOGE(LNN_INIT, "lock list err");
|
||||
return SOFTBUS_LOCK_ERR;
|
||||
}
|
||||
char *anonyPkgName = NULL;
|
||||
Anonymize(startReq->pkgName, &anonyPkgName);
|
||||
LIST_FOR_EACH_ENTRY(item, &info->startReqList, StartTimeSyncReq, node) {
|
||||
if (strcmp(startReq->pkgName, item->pkgName) != 0 || item->pid != startReq->pid) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user