iliaa Wed Sep 17 20:04:58 2003 EDT Modified files: /php-src/main main.c Log: When track_errors was enabled, we tried to assign value already freed char. Index: php-src/main/main.c diff -u php-src/main/main.c:1.576 php-src/main/main.c:1.577 --- php-src/main/main.c:1.576 Thu Sep 4 10:43:36 2003 +++ php-src/main/main.c Wed Sep 17 20:04:57 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.576 2003/09/04 14:43:36 helly Exp $ */ +/* $Id: main.c,v 1.577 2003/09/18 00:04:57 iliaa Exp $ */ /* {{{ includes */ @@ -556,7 +556,6 @@ } else { spprintf(&message, 0, "%s: %s", origin, buffer); } - efree(buffer); efree(origin); if (docref_buf) { efree(docref_buf); @@ -570,6 +569,7 @@ ZVAL_STRINGL(tmp, buffer, buffer_len, 1); zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) &tmp, sizeof(pval *), NULL); } + efree(buffer); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php