Fixed possible crash

This commit is contained in:
Dmitry Stogov 2004-09-15 10:43:07 +00:00
parent 7438337fdd
commit 2a63e78eed

View File

@ -2494,7 +2494,7 @@ static void clear_soap_fault(zval *obj TSRMLS_DC)
zval* add_soap_fault(zval *obj, char *fault_code, char *fault_string, char *fault_actor, zval *fault_detail TSRMLS_DC)
{
zval *fault;
MAKE_STD_ZVAL(fault);
ALLOC_INIT_ZVAL(fault);
set_soap_fault(fault, fault_code, fault_string, fault_actor, fault_detail, NULL TSRMLS_CC);
#ifdef ZEND_ENGINE_2
fault->refcount--; /*FIXME*/