!2369 [bugfix]修复重复释放内存bug

Merge pull request !2369 from samuel.shi/master
This commit is contained in:
openharmony_ci 2022-09-21 11:39:18 +00:00 committed by Gitee
commit 296458bf38
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -629,7 +629,6 @@ int32_t TransOpenAuthMsgChannel(const char *sessionName, const ConnectOption *co
SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "TransPostAuthRequest failed");
AuthCloseChannel(channel->authId);
DelAuthChannelInfoByChanId(*channelId);
SoftBusFree(channel);
return SOFTBUS_ERR;
}
return SOFTBUS_OK;