Bug #13479: major resource leak
| From: | Padraig at linux dot ie | Date: | Fri, 28 Sep 2001 14:57:39 +0000 |
| Subject: | Bug #13479: major resource leak | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66771@lists.php.net to get a copy of this message | ||
From: Padraig@linux.ie
Operating system:
PHP version: 4.0.6
PHP Bug Type: SNMP related
Bug description: major resource leak
Before every RETURN_FALSE; you should snmp_clse(ss);
A diff against the latest /ext/snmp/snmp.c (1.51) is
available at:
http://www.iol.ie/~padraiga/snmp-1.51-snmpclose.diff
Note this happens a lot in my experience as there is
a lot of code that does:
while (snmpget(...))
{
....
}
--
Edit bug report at: http://bugs.php.net/?id=13479&edit=1