iliaa Thu Nov 27 19:00:35 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/main streams.c
Log:
MFH: Fixed a memory leak.
Index: php-src/main/streams.c
diff -u php-src/main/streams.c:1.125.2.82 php-src/main/streams.c:1.125.2.83
--- php-src/main/streams.c:1.125.2.82 Wed Oct 8 06:58:28 2003
+++ php-src/main/streams.c Thu Nov 27 19:00:34 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.125.2.82 2003/10/08 10:58:28 wez Exp $ */
+/* $Id: streams.c,v 1.125.2.83 2003/11/28 00:00:34 iliaa Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -2882,9 +2882,9 @@
ALLOC_INIT_ZVAL(copied_val);
*copied_val = *optionvalue;
zval_copy_ctor(copied_val);
-
+ INIT_PZVAL(copied_val);
+
if (FAILURE == zend_hash_find(Z_ARRVAL_P(context->options),
(char*)wrappername, strlen(wrappername)+1, (void**)&wrapperhash)) {
-
MAKE_STD_ZVAL(category);
array_init(category);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php