cvs: ZendEngine2 / zend_constants.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1203422474@cvsserver>
dmitry		Tue Feb 19 12:01:14 2008 UTC

  Modified files:              
    /ZendEngine2	zend_constants.c 
  Log:
  Fixed memory leak
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_constants.c?r1=1.107&r2=1.108&diff_format=u
Index: ZendEngine2/zend_constants.c
diff -u ZendEngine2/zend_constants.c:1.107 ZendEngine2/zend_constants.c:1.108
--- ZendEngine2/zend_constants.c:1.107	Mon Dec 31 07:12:06 2007
+++ ZendEngine2/zend_constants.c	Tue Feb 19 12:01:14 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_constants.c,v 1.107 2007/12/31 07:12:06 sebastian Exp $ */
+/* $Id: zend_constants.c,v 1.108 2008/02/19 12:01:14 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_constants.h"
@@ -471,6 +471,7 @@
 			zval_update_constant_ex(ret_constant, (void*)1, ce TSRMLS_CC);
 			*result = **ret_constant;
 			zval_copy_ctor(result);
+			INIT_PZVAL(result);
 		}
 
 		return retval;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.