FAQ
sniper Sat Apr 23 17:15:39 2005 EDT

Modified files: (Branch: PHP_4_3)
/php-src/ext/snmp snmp.c
Log:
MFH: fix memleak

http://cvs.php.net/diff.php/php-src/ext/snmp/snmp.c?r1=1.70.2.19&r2=1.70.2.20&ty=u
Index: php-src/ext/snmp/snmp.c
diff -u php-src/ext/snmp/snmp.c:1.70.2.19 php-src/ext/snmp/snmp.c:1.70.2.20
--- php-src/ext/snmp/snmp.c:1.70.2.19 Fri Apr 15 18:08:43 2005
+++ php-src/ext/snmp/snmp.c Sat Apr 23 17:15:39 2005
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: snmp.c,v 1.70.2.19 2005/04/15 22:08:43 sniper Exp $ */
+/* $Id: snmp.c,v 1.70.2.20 2005/04/23 21:15:39 sniper Exp $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -442,6 +442,8 @@
if (st == 1) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
+ zval_dtor(snmpval);
+ efree(snmpval);
snmp_close(ss);
return;
} else if (st == 2) {

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupphp-cvs @
categoriesphp
postedApr 15, '05 at 10:08p
activeApr 27, '05 at 11:27p
posts3
users1
websitephp.net

1 user in discussion

Jani Taskinen: 3 posts

People

Translate

site design / logo © 2019 Grokbase