summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-04-27 23:27:37 +0000
committerfoobar <sniper@php.net>2005-04-27 23:27:37 +0000
commit56b3cac3651b33ed09ea60078eb52a74ec0114e9 (patch)
tree651b9c70b1fa4b580e001b9940bc090e057acdae
parent6d978a62f1b69760870524fcf2f3900063d35ced (diff)
downloadphp-git-56b3cac3651b33ed09ea60078eb52a74ec0114e9.tar.gz
Better use zval_ptr_dtor() instead (thanks Andi)
-rw-r--r--ext/snmp/snmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 89f13d3d05..31ea2ed063 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -452,8 +452,7 @@ retry:
if (st == SNMP_CMD_GET) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
- zval_dtor(snmpval);
- efree(snmpval);
+ zval_ptr_dtor(&snmpval);
snmp_close(ss);
return;
} else if (st == SNMP_CMD_GETNEXT) {