summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-09 15:26:45 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-09 15:26:45 +0400
commitd9f6068fd3781498a3d8a6abb46264e835ecfe1f (patch)
tree6c7cd5ca429b0593e8a4229091f7a93619c8ce21
parent22ec682e77ed19d556b265880242d79f970a6363 (diff)
downloadphp-git-d9f6068fd3781498a3d8a6abb46264e835ecfe1f.tar.gz
Fixed GC
-rw-r--r--ext/standard/streamsfuncs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 6da9a008f5..4b1411c7b7 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -702,6 +702,7 @@ static int stream_array_from_fd_set(zval *stream_array, fd_set *fds TSRMLS_DC)
/* destroy old array and add new one */
zend_hash_destroy(Z_ARRVAL_P(stream_array));
+ GC_REMOVE_FROM_BUFFER(Z_ARR_P(stream_array));
efree(Z_ARR_P(stream_array));
zend_hash_internal_pointer_reset(Z_ARRVAL(new_array));