From 9480cbd0a776dd087dd7dd83bae6e600f0ba506b Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Mon, 11 May 2026 07:10:54 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 39 Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../ModuleSession_PullStream/ModuleSession_PullStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XEngine_Source/XEngine_ModuleSession/ModuleSession_PullStream/ModuleSession_PullStream.cpp b/XEngine_Source/XEngine_ModuleSession/ModuleSession_PullStream/ModuleSession_PullStream.cpp index e64773b..a621c74 100644 --- a/XEngine_Source/XEngine_ModuleSession/ModuleSession_PullStream/ModuleSession_PullStream.cpp +++ b/XEngine_Source/XEngine_ModuleSession/ModuleSession_PullStream/ModuleSession_PullStream.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "ModuleSession_PullStream.h" +#include /******************************************************************** // Created: 2023/06/05 16:11:53 // File Name: D:\XEngine_StreamMedia\XEngine_Source\XEngine_ModuleSession\ModuleSession_PullStream\ModuleSession_PullStream.cpp @@ -52,7 +53,7 @@ bool CModuleSession_PullStream::ModuleSession_PullStream_Insert(LPCXSTR lpszClie { Session_IsErrorOccur = false; - STREAMMEDIA_PULLLISTINFO* pSt_PullStream = new STREAMMEDIA_PULLLISTINFO; + STREAMMEDIA_PULLLISTINFO* pSt_PullStream = new(std::nothrow) STREAMMEDIA_PULLLISTINFO; if (NULL == pSt_PullStream) { Session_IsErrorOccur = true;