Skip to content

Commit f1a988a

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix persistent leak on load_wsdl_ex failure
2 parents efe6916 + 51d76c3 commit f1a988a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/soap/php_sdl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,8 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
739739
zend_hash_init(&ctx.portTypes, 0, NULL, NULL, 0);
740740
zend_hash_init(&ctx.services, 0, NULL, NULL, 0);
741741

742-
load_wsdl_ex(this_ptr, struri, &ctx, 0);
743742
zend_try {
744-
743+
load_wsdl_ex(this_ptr, struri, &ctx, 0);
745744
schema_pass2(&ctx);
746745

747746
n = zend_hash_num_elements(&ctx.services);

0 commit comments

Comments
 (0)