diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-09-23 18:26:10 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-09-23 18:26:10 +0000 |
| commit | 08604e5d4470a024ab9ab8dc44f02b3859cb99e4 (patch) | |
| tree | e76d43175a12772e8173972f8c8abca0fd219481 | |
| parent | ce2f1ce4bc2eafdcf2df5c2efd69d4f760c49d03 (diff) | |
| download | php-git-08604e5d4470a024ab9ab8dc44f02b3859cb99e4.tar.gz | |
MFH: Fixed bug #25636 (SNMP Session not closed on success).
| -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 */ |
