diff options
| author | Caleb Champlin <caleb.champlin@gmail.com> | 2015-11-02 21:58:04 +0000 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2015-11-09 11:58:34 +0800 |
| commit | 6ff014b31cdb30abeb4999de0030342d0109ed91 (patch) | |
| tree | 64c37add83e017d094d31c85568fa95dd94e646f | |
| parent | fe12492480237ae504fd49fd6e9d01fb8218e206 (diff) | |
| download | php-git-6ff014b31cdb30abeb4999de0030342d0109ed91.tar.gz | |
Make sure context is set to null to prevent use after free
| -rw-r--r-- | main/streams/streams.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 3ad44b07a9..d0f8a44b98 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -84,6 +84,7 @@ fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream); if (stream->ctx) { zend_list_delete(stream->ctx); + stream->ctx = NULL; } return 0; |
