Skip to content

Commit 557aa43

Browse files
committed
Defensively set stream to NULL
1 parent c7b55c2 commit 557aa43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/dom/html_document.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ PHP_METHOD(DOM_HTMLDocument, createFromFile)
10841084
}
10851085

10861086
php_stream_close(stream);
1087+
stream = NULL;
10871088

10881089
dom_object *intern = php_dom_instantiate_object_helper(
10891090
return_value,

0 commit comments

Comments
 (0)