com php-src: fix dangling pointer, phpdbg reveals it: Zend/zend_string.c
| From: | Anatol Belski | Date: | Thu, 02 Jun 2016 17:42:50 +0000 |
| Subject: | com php-src: fix dangling pointer, phpdbg reveals it: Zend/zend_string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92282@lists.php.net to get a copy of this message | ||
Commit: 4b2fb0b4aecfb33a0f33d09af77527652e7fc43b
Author: Anatol Belski <ab@php.net> Thu, 2 Jun 2016 19:42:50 +0200
Parents: 47e26cf9dbe9c9650f2d33280845b8794db03910
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4b2fb0b4aecfb33a0f33d09af77527652e7fc43b
Log:
fix dangling pointer, phpdbg reveals it
Changed paths:
M Zend/zend_string.c
Diff:
diff --git a/Zend/zend_string.c b/Zend/zend_string.c
index 3da95bd..4e7bcfc 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -122,6 +122,8 @@ void zend_interned_strings_dtor(void)
free(CG(known_strings));
CG(known_strings) = NULL;
CG(known_strings_count) = 0;
+ known_interned_strings = NULL;
+ known_interned_strings_count = 0;
}
static zend_string *zend_new_interned_string_int(zend_string *str)