Skip to content

Commit 5e1497c

Browse files
committed
UNDEF pointers
1 parent a051233 commit 5e1497c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ext/soap/php_packet_soap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ static void master_to_zval_with_doc_cleanup(zval *ret, encodePtr encode, xmlNode
2222
{
2323
bool bailout = false;
2424

25+
ZVAL_UNDEF(ret);
26+
2527
/* SoapClient can turn decode errors into a bailout before parse_packet_soap() frees the response doc. */
2628
zend_try {
2729
master_to_zval(ret, encode, data);
@@ -30,6 +32,7 @@ static void master_to_zval_with_doc_cleanup(zval *ret, encodePtr encode, xmlNode
3032
} zend_end_try();
3133

3234
if (bailout) {
35+
zval_ptr_dtor(ret);
3336
xmlFreeDoc(doc);
3437
zend_bailout();
3538
}

0 commit comments

Comments
 (0)