diff options
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | ext/snmp/snmp.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,8 @@ PHP 4 NEWS - Fixed crash bug when non-existing save/serializer handler was used. (Jani) - Fixed memory leak in gethostbynamel() if an error occurs. (Sara) - Fixed FastCGI being unable to bind to a specific IP. (Sascha) +- Fixed bug #25636 (SNMP Session not closed on success). (Ilia, + nesslage[at]mwsc[dot]edu) - Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build). (Jani) - Fixed bug #25583 (Incorrect handling of paths starting with / on win32 inside glob() function). (Ilia) diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index d5051dc1c6..80f808a500 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) { add_next_index_zval(return_value,snmpval); /* Add to returned array */ |
