mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 08:49:59 +00:00
fix free ana pkgname
Signed-off-by: wangrui <wangrui383@huawei.com>
This commit is contained in:
parent
905061af09
commit
b542848a75
@ -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