fixed memory leak
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 30 Aug 2017 20:20:48 +0000 (23:20 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 30 Aug 2017 20:20:48 +0000 (23:20 +0300)
src/server/core/session.cpp

index 076cdcb..1a7072f 100644 (file)
@@ -8997,6 +8997,7 @@ void ClientSession::sendConfigForAgent(NXCPMessage *pRequest)
                   DecodeSQLStringAndSetVariable(&msg, VID_CONFIG_FILE, pszText);
                   msg.setField(VID_CONFIG_ID, dwCfgId);
                   free(pszText);
+                  delete vm;
                   break;
                }
                else