From: Ilia Alshanetsky Date: Tue, 23 Sep 2003 18:26:02 +0000 (+0000) Subject: Fixed bug #25636 (SNMP Session not closed on success). X-Git-Tag: RELEASE_1_3b2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9823393ea40cdaa06139d6fdcba75306bfa82a7;p=php Fixed bug #25636 (SNMP Session not closed on success). Patch by: nesslage[at]mwsc[dot]edu --- 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;