summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-09-18 00:04:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-09-18 00:04:57 +0000
commit855015ecd001555f71687dc7aad151a4723fe5c1 (patch)
treea1d303895b75e1cd2740fbb668476427d2fc3445
parent909bd62a43a4d42a9f7f2b81f72cc7c60fde1529 (diff)
downloadphp-git-855015ecd001555f71687dc7aad151a4723fe5c1.tar.gz
When track_errors was enabled, we tried to assign value already freed char.
-rw-r--r--main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index bb6cc0ee3d..737dd0ba7c 100644
--- a/main/main.c
+++ b/main/main.c
@@ -556,7 +556,6 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
} else {
spprintf(&message, 0, "%s: %s", origin, buffer);
}
- efree(buffer);
efree(origin);
if (docref_buf) {
efree(docref_buf);
@@ -570,6 +569,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
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);
}
/* }}} */