Przeglądaj źródła

HPCC-24716 Fix double free ScriptValues in ESDL logging

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 4 lat temu
rodzic
commit
16395743ed
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      esp/logging/loggingmanager/loggingmanager.cpp

+ 1 - 1
esp/logging/loggingmanager/loggingmanager.cpp

@@ -197,7 +197,7 @@ bool CLoggingManager::updateLog(IEspContext* espContext, const char* option, IPr
         Owned<IEspUpdateLogRequestWrap> req =  new CUpdateLogRequestWrap(nullptr, option, espContextTree.getClear(), LINK(userContext), LINK(userRequest),
             backEndReq, backEndResp, userResp, logDatasets);
         if (scriptValues)
-            req->setScriptValuesTree(scriptValues);
+            req->setScriptValuesTree(LINK(scriptValues));
         Owned<IEspUpdateLogResponse> resp =  createUpdateLogResponse();
         bRet = updateLog(espContext, *req, *resp, status);
     }