com php-src: Don't keep dangling pointer.: Zend/zend_alloc. c
| From: | Dmitry Stogov | Date: | Thu, 10 Sep 2015 17:03:42 +0000 |
| Subject: | com php-src: Don't keep dangling pointer.: Zend/zend_alloc. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88998@lists.php.net to get a copy of this message | ||
Commit: 1b8bf059c4ac2ceac142938918203ee97b6fdc0a
Author: Dmitry Stogov <dmitry@zend.com> Thu, 10 Sep 2015 20:03:42 +0300
Parents: 97b85364a56212333f64cc4fb01016c196a5e57c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b8bf059c4ac2ceac142938918203ee97b6fdc0a
Log:
Don't keep dangling pointer.
Changed paths:
M Zend/zend_alloc.c
Diff:
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 4d5f2dc..bf147f5 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -2147,6 +2147,7 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent)
/* free huge blocks */
list = heap->huge_list;
+ heap->huge_list = NULL;
while (list) {
zend_mm_huge_list *q = list;
list = list->next;