fixed memory leak in NXSL function SNMPGet
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 24 Oct 2014 06:52:37 +0000 (09:52 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 24 Oct 2014 06:52:37 +0000 (09:52 +0300)
src/server/core/nxslext.cpp

index 6b4c6d4..7368a13 100644 (file)
@@ -940,6 +940,7 @@ static int F_SNMPGet(int argc, NXSL_Value **argv, NXSL_Value **ppResult, NXSL_VM
        {
                *ppResult = new NXSL_Value;
        }
+   delete pdu;
        return 0;
 }