Browse Source

Fixed a memory leak.

zend_error -> php_error_docref.
PHP-5
Ilia Alshanetsky 24 years ago
parent
commit
f163a4d16b
  1. 6
      ext/yp/yp.c

6
ext/yp/yp.c

@ -241,7 +241,11 @@ static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval
if(call_user_function_ex(CG(function_table), NULL, *((zval **)indata), &retval, 3, args, 0, NULL TSRMLS_CC) != SUCCESS)
{
zend_error(E_ERROR, "Function call failed");
zval_ptr_dtor(&status);
zval_ptr_dtor(&key);
zval_ptr_dtor(&value);
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Function call failed");
return 1;
}

Loading…
Cancel
Save