From b9823393ea40cdaa06139d6fdcba75306bfa82a7 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 23 Sep 2003 18:26:02 +0000 Subject: [PATCH] Fixed bug #25636 (SNMP Session not closed on success). Patch by: nesslage[at]mwsc[dot]edu --- ext/snmp/snmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 3ecf05a52a..1e96aef984 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -427,6 +427,7 @@ retry: if (st == 1) { *return_value = *snmpval; zval_copy_ctor(return_value); + snmp_close(ss); return; } else if (st == 2) { *return_value = *snmpval; -- 2.40.0