summaryrefslogtreecommitdiff
path: root/examples/v3arch
diff options
context:
space:
mode:
authorelie <elie>2013-10-25 07:22:54 +0000
committerelie <elie>2013-10-25 07:22:54 +0000
commiteb44ada0eb7aaeb6be4026abe89af8420a942a9a (patch)
treee542cb148edf5b389bccd50bb7adbd1c562ada0c /examples/v3arch
parentef021ff0bc7b9550e01074bdd60bce950d37b869 (diff)
downloadpysnmp-eb44ada0eb7aaeb6be4026abe89af8420a942a9a.tar.gz
memory leak fixed
Diffstat (limited to 'examples/v3arch')
-rw-r--r--examples/v3arch/proxy/cmd/udp6-to-udp4-conversion.py2
-rw-r--r--examples/v3arch/proxy/cmd/v2c-to-v1-conversion.py2
-rw-r--r--examples/v3arch/proxy/cmd/v2c-to-v3-conversion.py2
-rw-r--r--examples/v3arch/proxy/cmd/v3-to-v2c-conversion.py2
4 files changed, 8 insertions, 0 deletions
diff --git a/examples/v3arch/proxy/cmd/udp6-to-udp4-conversion.py b/examples/v3arch/proxy/cmd/udp6-to-udp4-conversion.py
index 60b3f57..490f43f 100644
--- a/examples/v3arch/proxy/cmd/udp6-to-udp4-conversion.py
+++ b/examples/v3arch/proxy/cmd/udp6-to-udp4-conversion.py
@@ -128,6 +128,8 @@ class CommandResponder(cmdrsp.CommandResponderBase):
snmpEngine, stateReference, errorStatus, errorIndex, varBinds
)
+ self.releaseStateInformation(stateReference)
+
CommandResponder(snmpEngine, context.SnmpContext(snmpEngine))
snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish
diff --git a/examples/v3arch/proxy/cmd/v2c-to-v1-conversion.py b/examples/v3arch/proxy/cmd/v2c-to-v1-conversion.py
index 382b337..fd9dff1 100644
--- a/examples/v3arch/proxy/cmd/v2c-to-v1-conversion.py
+++ b/examples/v3arch/proxy/cmd/v2c-to-v1-conversion.py
@@ -126,6 +126,8 @@ class CommandResponder(cmdrsp.CommandResponderBase):
snmpEngine, stateReference, errorStatus, errorIndex, varBinds
)
+ self.releaseStateInformation(stateReference)
+
CommandResponder(snmpEngine, context.SnmpContext(snmpEngine))
snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish
diff --git a/examples/v3arch/proxy/cmd/v2c-to-v3-conversion.py b/examples/v3arch/proxy/cmd/v2c-to-v3-conversion.py
index 8663340..1ce38ca 100644
--- a/examples/v3arch/proxy/cmd/v2c-to-v3-conversion.py
+++ b/examples/v3arch/proxy/cmd/v2c-to-v3-conversion.py
@@ -127,6 +127,8 @@ class CommandResponder(cmdrsp.CommandResponderBase):
snmpEngine, stateReference, errorStatus, errorIndex, varBinds
)
+ self.releaseStateInformation(stateReference)
+
CommandResponder(snmpEngine, context.SnmpContext(snmpEngine))
snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish
diff --git a/examples/v3arch/proxy/cmd/v3-to-v2c-conversion.py b/examples/v3arch/proxy/cmd/v3-to-v2c-conversion.py
index 015f691..e36a989 100644
--- a/examples/v3arch/proxy/cmd/v3-to-v2c-conversion.py
+++ b/examples/v3arch/proxy/cmd/v3-to-v2c-conversion.py
@@ -130,6 +130,8 @@ class CommandResponder(cmdrsp.CommandResponderBase):
snmpEngine, stateReference, errorStatus, errorIndex, varBinds
)
+ self.releaseStateInformation(stateReference)
+
CommandResponder(snmpEngine, context.SnmpContext(snmpEngine))
snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish