diff options
| -rw-r--r-- | ext/standard/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 7e89e3b8e4..ceb83af63f 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -131,6 +131,7 @@ static ZEND_RSRC_DTOR_FUNC(file_context_dtor) { php_stream_context *context = (php_stream_context*)rsrc->ptr; zval_dtor(context->options); + context->options = NULL; php_stream_context_free(context); } |
