Permalink
Browse files

Correct destruction

  • Loading branch information...
1 parent 8845a03 commit 39df192788feed4bca2d27aed5d1b4f8cf038fcd Marcus Boerger committed Nov 17, 2003
Showing with 1 addition and 2 deletions.
  1. +1 −2 Zend/zend_interfaces.c
View
@@ -86,8 +86,7 @@ ZEND_API zval* zend_call_method(zval **object_pp, zend_class_entry *obj_ce, zend
}
if (!retval_ptr_ptr) {
if (retval) {
- zval_dtor(retval);
- FREE_ZVAL(retval);
+ zval_ptr_dtor(&retval);
}
return NULL;
}

0 comments on commit 39df192

Please sign in to comment.