Skip to content

Commit f90cf29

Browse files
committed
Fix
1 parent 8a18018 commit f90cf29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/standard/streamsfuncs.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,9 +870,8 @@ static void user_space_stream_notifier(php_stream_context *context, int notifyco
870870
ZVAL_LONG(&zvs[5], bytes_max);
871871

872872
zend_call_known_fcc(context->notifier->fcc, NULL, 6, zvs, NULL);
873-
for (uint8_t i = 0; i < 6; i++) {
874-
zval_ptr_dtor(&zvs[i]);
875-
}
873+
/* Free refcounted string parameter */
874+
zval_ptr_dtor_str(&zvs[2]);
876875
}
877876

878877
static void user_space_stream_notifier_dtor(php_stream_notifier *notifier)

0 commit comments

Comments
 (0)