Skip to content

Commit

Permalink
Revert "Fixed memory leaks related to the cache of securityStateRefer…
Browse files Browse the repository at this point in the history
…ence. See #93 for details."

This reverts commit 144d42cd9893735f30097bfb822350c7cb3c990c.
  • Loading branch information
y-iwata-bl authored and lextm committed Nov 8, 2024
1 parent 7c7e069 commit a0c0bed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysnmp/proto/mpmod/rfc3412.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ def prepare_response_message(
or pduType is not None
and pduType not in rfc3411.CONFIRMED_CLASS_PDUS
):
if securityModel in snmpEngine.security_models:
smHandler = snmpEngine.security_models[securityModel]
smHandler.release_state_information(securityStateReference)
raise error.StatusInformation(errorIndication=errind.loopTerminated)

# 7.1.3c
Expand Down

0 comments on commit a0c0bed

Please sign in to comment.