minor fix
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 6 Oct 2016 13:29:51 +0000 (16:29 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 6 Oct 2016 13:29:51 +0000 (16:29 +0300)
src/server/core/snmp.cpp

index 9cce946..4e00653 100644 (file)
@@ -295,7 +295,10 @@ SNMP_Transport *SnmpCheckCommSettings(UINT32 snmpProxy, const InetAddress& ipAdd
       }
 
       if (IsShutdownInProgress())
+      {
+         delete pTransport;
          goto fail;
+      }
 
       pTransport->setSnmpVersion(SNMP_VERSION_2C);
 restart_check: